/* Google Cloud Documentation Footer Style */
.site-footer,
body .site-footer,
body footer#colophon.site-footer,
body #colophon.site-footer,
html body .site-footer,
#page footer#colophon.site-footer,
#page .site-footer {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #5f6368 !important;
    padding: 48px 0 24px !important;
    border-top: 1px solid #e8eaed !important;
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e8eaed;
}

.footer-section h3 {
    color: #202124;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 0;
    text-transform: none;
}

.footer-section p {
    color: #5f6368;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 8px;
}

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

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

.footer-section a {
    color: #5f6368;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.footer-section a:hover {
    color: #1a73e8;
}

.footer-section a[href*="admin"] {
    color: #1a73e8;
}

.footer-section a[href*="admin"]:hover {
    color: #1557b0;
}

.footer-section .brand-link {
    color: #202124 !important;
    font-weight: 400 !important;
}

.footer-section .brand-link:hover {
    color: #1a73e8 !important;
}

.footer-section .brand-link img {
    display: block;
}

.footer-bottom {
    border-top: none;
    padding-top: 24px;
    padding-bottom: 32px;
    text-align: left;
}

.footer-bottom p {
    color: #5f6368;
    font-size: 12px;
    margin: 0 0 8px 0;
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.footer-bottom p:last-child {
    margin: 0;
}

.footer-bottom a {
    color: #5f6368;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #1a73e8;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .site-footer {
        padding: 32px 0 20px;
    }
    
    .site-footer .container {
        padding: 0 24px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-bottom {
        text-align: center;
    }
}

/* Premium Lesson Modal Styles */
.premium-lesson-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.premium-lesson-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.premium-lesson-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    width: 380px;
    max-height: 520px;
    overflow: hidden;
    z-index: 1000000;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.premium-lesson-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 28px 20px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.premium-lesson-modal-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.premium-lesson-modal-close {
    background: #f8fafc;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.premium-lesson-modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
    transform: rotate(90deg);
}

.premium-lesson-modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

.premium-lesson-modal-body {
    padding: 24px 28px;
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 120px;
}

.premium-lesson-modal-body p {
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.premium-lesson-modal-footer {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px 28px 28px;
    border-top: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.premium-lesson-modal-btn {
    width: 100%;
    padding: 13px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    display: inline-block;
    letter-spacing: 0.01em;
}

.premium-lesson-modal-btn-login {
    background: #f8fafc;
    color: #0f172a;
    border: 1.5px solid #e2e8f0;
}

.premium-lesson-modal-btn-login:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.premium-lesson-modal-btn-login:active {
    transform: translateY(0);
}

.premium-lesson-modal-btn-subscribe {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: white;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
    border: none;
}

.premium-lesson-modal-btn-subscribe:hover {
    background: linear-gradient(135deg, #0284c7, #0891b2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
}

.premium-lesson-modal-btn-subscribe:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
}

.premium-lesson-modal-btn-primary {
    background: #0f172a;
    color: white;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
    border: none;
}

.premium-lesson-modal-btn-primary:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
}

.premium-lesson-modal-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 480px) {
    .premium-lesson-modal-content {
        width: 90%;
        max-width: 360px;
        max-height: 500px;
    }
    
    .premium-lesson-modal-header {
        padding: 24px 24px 18px;
    }
    
    .premium-lesson-modal-header h2 {
        font-size: 20px;
    }
    
    .premium-lesson-modal-body {
        padding: 20px 24px;
    }
    
    .premium-lesson-modal-body p {
        font-size: 14px;
    }
    
    .premium-lesson-modal-footer {
        padding: 18px 24px 24px;
    }
    
    .premium-lesson-modal-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}
