* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 50%, #45B7D1 100%);
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
    transition: background 0.6s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease-out;
}

header h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
}

.refresh-bg-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.refresh-bg-btn:hover {
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    background: white;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Input Section */
.input-section {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeInLeft 0.8s ease-out;
}

.input-section h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

#optionsContainer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.option-input-group {
    display: flex;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
}

.option-input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.option-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.remove-btn {
    padding: 15px 20px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.remove-btn:hover:not(:disabled) {
    background: #ff3838;
    transform: scale(1.1);
}

.remove-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.add-btn {
    width: 100%;
    padding: 15px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.add-btn:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

.spin-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.4);
}

.spin-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 87, 108, 0.6);
}

.spin-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* Wheel Section */
.wheel-section {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease-out;
}

.wheel-container {
    position: relative;
    width: 500px;
    height: 500px;
}

.wheel-pointer {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    color: #ffd700;
    z-index: 10;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
    animation: pointerBounce 2s ease-in-out infinite;
}

#wheelCanvas {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-dot {
    width: 20px;
    height: 20px;
    background: #667eea;
    border-radius: 50%;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: white;
    padding: 50px;
    border-radius: 30px;
    text-align: center;
    max-width: 600px;
    position: relative;
    animation: scaleIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal-content h2 {
    color: #667eea;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.winner-text {
    font-size: 3rem;
    font-weight: bold;
    color: #f5576c;
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border-radius: 20px;
    animation: pulse 1s ease-in-out infinite;
}

.close-modal-btn {
    padding: 15px 40px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Confetti */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #f5576c;
    top: -10px;
    animation: confettiFall 3s linear forwards;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pointerBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes confettiFall {
    to {
        transform: translateY(600px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .wheel-container {
        width: 400px;
        height: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .wheel-section {
        width: 100%;
        padding: 0;
    }

    .wheel-container {
        width: 100%;
        max-width: 500px;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    #wheelCanvas {
        width: 100%;
        height: 100%;
    }

    .input-section {
        padding: 20px;
    }

    .modal-content {
        padding: 30px;
        margin: 20px;
    }

    .winner-text {
        font-size: 2rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }

    header h1 {
        font-size: 2rem;
    }

    .wheel-section {
        width: 100%;
    }

    .wheel-container {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    #wheelCanvas {
        width: 100%;
        height: 100%;
    }

    .option-input {
        padding: 12px;
        font-size: 1rem;
    }

    .spin-btn {
        font-size: 1.2rem;
        padding: 15px;
    }
}

/* SEO Content Section Styles */
.seo-content-wrapper {
    background: #f8f9fa;
    padding: 60px 20px;
    margin-top: 80px;
}

.seo-content-container {
    max-width: 1200px;
    margin: 0 auto;
}

.seo-section {
    background: white;
    padding: 40px;
    margin-bottom: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.6s ease-out;
}

.seo-heading {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 24px;
    line-height: 1.3;
    border-left: 5px solid #667eea;
    padding-left: 20px;
}

.seo-text {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.seo-text strong {
    color: #667eea;
    font-weight: 600;
}

/* Grid Layout for Cards */
.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.seo-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.seo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.seo-card-title {
    color: #667eea;
    font-size: 1.4rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.seo-card-text {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.7;
}

/* Lists */
.seo-list {
    margin-left: 20px;
    margin-top: 20px;
}

.seo-list li {
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 10px;
}

.seo-list li strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Steps Layout */
.seo-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 30px;
}

.seo-step {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #fff5f5 0%, #f0f4ff 100%);
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.seo-step:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.1);
}

.seo-step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.seo-step-content {
    flex: 1;
}

.seo-step-title {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.seo-step-text {
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Use Cases */
.seo-use-case {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.seo-use-case:hover {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.12);
}

.seo-use-case-title {
    color: #667eea;
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Tips Layout */
.seo-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.seo-tip {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid #f39c12;
    transition: all 0.3s ease;
}

.seo-tip:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.2);
}

.seo-tip-title {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
}

/* FAQ Section */
.seo-faq {
    margin-top: 30px;
}

.seo-faq-item {
    background: white;
    padding: 24px;
    margin-bottom: 16px;
    border-radius: 12px;
    border-left: 4px solid #2ecc71;
    transition: all 0.3s ease;
}

.seo-faq-item:hover {
    box-shadow: 0 5px 20px rgba(46, 204, 113, 0.15);
    transform: translateX(5px);
}

.seo-faq-question {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 600;
}

/* CTA Section */
.seo-cta {
    text-align: center;
    margin-top: 40px;
}

.seo-cta-button {
    display: inline-block;
    padding: 20px 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.seo-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

/* Footer Text */
.seo-footer-text {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.8;
}

.seo-footer-text strong {
    color: #667eea;
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments for SEO Section */
@media (max-width: 768px) {
    .seo-content-wrapper {
        padding: 40px 15px;
        margin-top: 60px;
    }

    .seo-section {
        padding: 24px;
        margin-bottom: 24px;
    }

    .seo-heading {
        font-size: 1.5rem;
        padding-left: 15px;
    }

    .seo-text {
        font-size: 1rem;
    }

    .seo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .seo-card {
        padding: 20px;
    }

    .seo-card-title {
        font-size: 1.2rem;
    }

    .seo-step {
        flex-direction: column;
        padding: 20px;
    }

    .seo-step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .seo-step-title {
        font-size: 1.2rem;
    }

    .seo-tips {
        grid-template-columns: 1fr;
    }

    .seo-cta-button {
        padding: 15px 35px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .seo-content-wrapper {
        padding: 30px 10px;
        margin-top: 40px;
    }

    .seo-section {
        padding: 20px;
        border-radius: 12px;
    }

    .seo-heading {
        font-size: 1.3rem;
        padding-left: 12px;
        border-left-width: 3px;
    }

    .seo-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .seo-card {
        padding: 16px;
    }

    .seo-card-title {
        font-size: 1.1rem;
    }

    .seo-list li {
        font-size: 0.95rem;
    }

    .seo-step {
        padding: 16px;
    }

    .seo-tip {
        padding: 20px;
    }

    .seo-tip-title {
        font-size: 1.1rem;
    }

    .seo-faq-item {
        padding: 20px;
    }

    .seo-faq-question {
        font-size: 1.1rem;
    }

    .seo-cta-button {
        width: 100%;
        padding: 15px 25px;
        font-size: 1rem;
    }

    .seo-footer-text {
        padding: 20px;
        font-size: 0.85rem;
    }
}
