/* Homepage Enhanced Styles */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
.main-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Ultra compact header for desktop */
@media (min-width: 769px) {
    .main-header {
        padding: 3px 20px 8px 20px;
    }
    
    .main-title {
        font-size: 1.2rem;
        margin: 0;
        line-height: 1.1;
    }
    
    .main-subtitle {
        font-size: 0.75rem;
        margin: 0;
        line-height: 1.1;
    }
    
    .header-features {
        gap: 4px;
        margin-top: 1px;
        margin-bottom: 0;
    }
    
    .feature-badge {
        font-size: 0.65rem;
        padding: 1px 4px;
        line-height: 1.2;
    }
}

/* Mobile Header Icons */
.mobile-header-icons {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    gap: 10px;
    z-index: 1000;
    flex-direction: column;
    align-items: flex-end;
}

.mobile-icon {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

.mobile-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.mobile-icon:active {
    transform: scale(0.95);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    margin-top: 60px;
}

.mobile-menu-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu-link {
    color: #333;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.mobile-menu-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.mobile-menu-link.active {
    background: #667eea;
    color: white;
}

/* Show mobile elements on mobile */
@media (max-width: 768px) {
    .mobile-header-icons {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }
    
    .main-navigation {
        display: none;
    }
    
    /* Ultra compact mobile header */
    .main-header {
        padding: 3px 0;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .main-title {
        font-size: 1.4rem;
        margin: 0;
        line-height: 1.0;
    }
    
    .main-subtitle {
        font-size: 0.6rem;
        margin: 0;
        line-height: 1.0;
    }
    
    .header-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 2px;
        margin-top: 2px;
        justify-content: center;
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .feature-badge {
        font-size: 0.45rem;
        padding: 1px 2px;
        line-height: 1.0;
        margin: 0;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Small phones (iPhone SE, etc.) */
@media (max-width: 480px) {
    .mobile-header-icons {
        top: 10px;
        right: 10px;
        gap: 8px;
        flex-direction: column;
        align-items: flex-end;
    }
    
    .mobile-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .header-features {
        max-width: 180px;
    }
    
    .feature-badge {
        font-size: 0.4rem;
        padding: 1px;
    }
    
    .main-title {
        font-size: 1.2rem;
    }
    
    .main-subtitle {
        font-size: 0.55rem;
    }
}

/* Very small phones */
@media (max-width: 375px) {
    .mobile-header-icons {
        top: 8px;
        right: 8px;
        gap: 6px;
        flex-direction: column;
        align-items: flex-end;
    }
    
    .mobile-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Landscape orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .mobile-header-icons {
        top: 8px;
        right: 8px;
        flex-direction: column;
        align-items: flex-end;
    }
    
    .mobile-icon {
        width: 36px;
        height: 36px;
    }
}

/* iOS specific optimizations */
@supports (-webkit-touch-callout: none) {
    .mobile-icon {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
    }
    
    .main-header {
        padding: max(3px, calc(env(safe-area-inset-top, 0px) + 3px)) 0 3px 0;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .mobile-header-icons {
        /* Account for iOS safe area */
        top: max(15px, calc(env(safe-area-inset-top, 0px) + 15px));
        right: max(15px, env(safe-area-inset-right, 15px));
        flex-direction: column;
        align-items: flex-end;
    }
}

/* Portrait orientation - Zero padding for perfect alignment */
@media (max-width: 768px) and (orientation: portrait) {
    .calculator-section {
        padding: 0;
        margin: 0;
    }
    
    .calculator-wrapper {
        margin: 0 auto;
        padding: 0;
    }
}

/* Portrait mode - All phone sizes - No padding */
@media (max-width: 480px) and (orientation: portrait) {
    .calculator-section {
        padding: 0;
    }
}

@media (max-width: 375px) and (orientation: portrait) {
    .calculator-section {
        padding: 0;
    }
}

@media (max-width: 320px) and (orientation: portrait) {
    .calculator-section {
        padding: 0;
    }
}

/* Android specific optimizations */
@media screen and (-webkit-min-device-pixel-ratio: 1) {
    .mobile-icon {
        /* Better touch targets for Android */
        min-width: 44px;
        min-height: 44px;
    }
}

/* High DPI displays (Retina, etc.) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .mobile-icon {
        /* Crisp rendering on high DPI screens */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Hide mobile elements on desktop */
@media (min-width: 769px) {
    .mobile-header-icons {
        display: none;
    }
    
    .main-navigation {
        display: block;
    }
}

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

.main-title {
    font-size: 1.3rem;
    margin: 0 0 5px 0;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
    white-space: nowrap;
}

.main-subtitle {
    font-size: 1.0rem;
    margin: 0 0 30px 0;
    opacity: 0.9;
    font-weight: 300;
}

.header-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    max-width: 300px;
    margin: 0 auto;
    justify-content: center;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* Navigation Styles */
.main-navigation {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Compact navigation for desktop - Remove sticky to maximize calculator space */
@media (min-width: 769px) {
    .main-navigation {
        padding: 4px 0;
        min-height: 36px;
        position: relative; /* Remove sticky on desktop for more space */
    }
    
    .nav-list {
        gap: 12px;
        padding: 6px 0;
    }
    
    .nav-link {
        padding: 4px 8px;
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

/* Compact nav-list for desktop */
@media (min-width: 769px) {
    .nav-list {
        height: 32px;
        padding: 0;
    }
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 20px 30px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.nav-link.active {
    color: #2e7d32;
    border-bottom-color: #4CAF50;
    background: rgba(76, 175, 80, 0.05);
    font-weight: 700;
}

/* Main Content */
.calculator-main {
    background: #f8f9fa;
    min-height: 100vh;
}

/* Calculator Section - Mobile First */
.calculator-section {
    padding: 10px;
    background: white;
    margin: 0;
    overflow: visible;
}

.calculator-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
}

/* Calculator container styles moved to main style.css */

/* Calculator wrapper - let SVG handle the blue border */
.calculator-section .calculator-wrapper {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    box-sizing: border-box;
    padding: 0;
    position: relative;
    overflow: visible;
}

/* Desktop calculator display - moved up */
@media (min-width: 769px) {
    .calculator-section {
        padding: 10px 20px;
        margin: 5px 0;
    }
    
    .calculator-wrapper {
        max-width: 600px;
    }
}

/* Calculator Instructions */
.calculator-instructions {
    padding: 20px 0;
}

.calculator-instructions h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.instruction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.instruction-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #4CAF50;
    transition: transform 0.3s ease;
}

.instruction-item:hover {
    transform: translateY(-2px);
}

.instruction-item h3 {
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    color: #333;
    font-weight: 600;
}

.instruction-item p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Features Showcase */
.features-showcase {
    padding: 80px 20px;
    background: #f8f9fa;
}

.features-showcase h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #333;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* Why Choose Section */
.why-choose {
    padding: 80px 20px;
    background: white;
}

.why-choose h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #333;
    font-weight: 700;
}

.benefits-list {
    max-width: 1000px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(10px);
}

.benefit-icon {
    font-size: 2rem;
    margin-right: 20px;
    color: #4CAF50;
    flex-shrink: 0;
}

.benefit-content h3 {
    font-size: 1.3rem;
    margin: 0 0 15px 0;
    color: #333;
    font-weight: 600;
}

.benefit-content p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Educational Use Section */
.educational-use {
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.educational-use h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 700;
}

.use-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.use-case {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.use-case:hover {
    transform: translateY(-5px);
}

.use-case h3 {
    font-size: 1.5rem;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.use-case p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.6;
}

/* Footer Styles */
.main-footer {
    background: #333;
    color: white;
    padding: 60px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin: 0 0 20px 0;
    color: #4CAF50;
    font-weight: 600;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin: 0 0 20px 0;
    color: white;
    font-weight: 600;
}

.footer-section p {
    margin: 0 0 20px 0;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-features span {
    background: rgba(76, 175, 80, 0.2);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    color: #4CAF50;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: #4CAF50;
}


/* Mobile Responsiveness - Consolidated */
@media (max-width: 768px) {
    .main-subtitle {
        font-size: 0.9rem;
    }
    
    .calculator-main {
        min-height: auto;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    .calculator-section {
        margin: 0;
        padding: 10px 0;
        width: 100%;
        display: flex;
        justify-content: center;
        overflow: visible;
        min-height: auto;
    }
    
    .calculator-wrapper {
        width: 100%;
        max-width: 372px;
        margin: 0 auto;
        padding: 0;
        overflow: visible;
        min-height: auto;
    }
    
    .instruction-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
    }
    
    .benefit-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .use-cases {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 30px 15px;
    }
    
    .main-title {
        font-size: 1.2rem;
        white-space: nowrap;
    }
    
    .calculator-section,
    .features-showcase,
    .why-choose,
    .educational-use {
        padding: 40px 15px;
    }
    
    .feature-card,
    .instruction-item,
    .benefit-item,
    .use-case {
        padding: 25px 20px;
    }
    
    .main-footer {
        padding: 40px 15px 20px;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.nav-link:focus,
.feature-card:focus,
.instruction-item:focus,
.benefit-item:focus,
.use-case:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* Math Subjects Section */
.math-subjects {
    padding: 80px 20px;
    background: #f8f9fa;
}

.math-subjects-content {
    max-width: 1200px;
    margin: 0 auto;
}

.math-subjects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 700;
}

.math-subjects-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.subject-category {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #4CAF50;
    transition: transform 0.3s ease;
}

.subject-category:hover {
    transform: translateY(-2px);
}

.subject-category h3 {
    font-size: 1.3rem;
    margin: 0 0 20px 0;
    color: #333;
    font-weight: 600;
}

.subject-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subject-category li {
    padding: 8px 0;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 20px;
}

.subject-category li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.subject-category li:last-child {
    border-bottom: none;
}

/* Technical Specifications Section */
.tech-specs {
    padding: 80px 20px;
    background: white;
}

.tech-specs-content {
    max-width: 1200px;
    margin: 0 auto;
}

.tech-specs h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #333;
    font-weight: 700;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.spec-category {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.spec-category:hover {
    transform: translateY(-2px);
}

.spec-category h3 {
    font-size: 1.3rem;
    margin: 0 0 20px 0;
    color: #4CAF50;
    font-weight: 600;
}

.spec-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-category li {
    padding: 8px 0;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    padding-left: 20px;
}

.spec-category li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.spec-category li:last-child {
    border-bottom: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-card,
    .instruction-item,
    .benefit-item,
    .subject-category,
    .spec-category {
        border: 2px solid #333;
    }
    
    .use-case {
        border: 2px solid white;
    }
}

/* Embed Promotion Section - Homepage */
.embed-promotion {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    padding: 60px 20px;
    margin: 40px 0;
    color: white;
}

.embed-promotion-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.embed-promotion h2 {
    font-size: 2.2rem;
    margin: 0 0 20px 0;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.embed-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0 0 40px 0;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.embed-code-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.embed-code-box {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 20px 25px;
    flex: 1;
    min-width: 280px;
    max-width: 600px;
    overflow-x: auto;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.embed-code-box code {
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.6;
    display: block;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.copy-embed-button {
    background: white;
    color: #4CAF50;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 140px;
}

.copy-embed-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #f1f1f1;
}

.copy-embed-button:active {
    transform: translateY(-1px);
}

.copy-embed-button.copied {
    background: #2196F3;
    color: white;
}

.embed-full-instructions {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 30px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.embed-full-instructions:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateX(5px);
}

/* Mobile responsiveness for embed section */
@media (max-width: 768px) {
    .embed-promotion {
        padding: 40px 20px;
        margin: 20px 0;
    }
    
    .embed-promotion h2 {
        font-size: 1.6rem;
    }
    
    .embed-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .embed-code-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .embed-code-box {
        min-width: 100%;
        padding: 15px 20px;
    }
    
    .embed-code-box code {
        font-size: 11px;
    }
    
    .copy-embed-button {
        width: 100%;
        max-width: 300px;
        padding: 15px 30px;
    }
    
    .embed-full-instructions {
        display: block;
        max-width: 300px;
        margin: 20px auto 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .embed-promotion h2 {
        font-size: 1.4rem;
    }
    
    .embed-description {
        font-size: 0.95rem;
    }
    
    .embed-code-box code {
        font-size: 10px;
    }
}
