/* Landing Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--on-surface-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.landing-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header Styles - More Compact */
.landing-header {
    background-color: var(--surface-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 24px 20px;
    text-align: center;
}

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

.logo-section {
    margin-bottom: 12px;
}

.logo-section a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo-section a:hover {
    transform: scale(1.05);
}

.header-logo {
    height: 40px;
    width: auto;
}

.main-title {
    font-size: 36px;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.subtitle {
    font-size: 16px;
    color: #666;
    font-weight: 300;
}

/* Labs Section - Reduced Padding */
.labs-section {
    flex: 1;
    padding: 40px 20px;
}

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

.section-title {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 30px;
    color: #333;
}

.labs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.lab-segment {
    margin-bottom: 48px;
}

.segment-title {
    font-size: 24px;
    font-weight: 500;
    color: #333;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.segment-title .material-icons {
    font-size: 28px;
    color: #1976D2;
}

/* Lab Card Styles - More Compact */
.lab-card {
    background-color: var(--surface-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lab-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.lab-card.coming-soon {
    opacity: 0.7;
}

.card-content {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.icon-section {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.icon-section .material-icons {
    font-size: 48px;
}

.text-section {
    padding: 20px;
    flex: 1;
}

.lab-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
}

.lab-subtitle {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lab-description {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 16px;
}

.lab-metadata {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #666;
}

.lab-metadata span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lab-metadata .material-icons {
    font-size: 14px;
}

.action-section {
    padding: 0 20px 20px;
}

.lab-button {
    width: 100%;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lab-button:hover:not(:disabled) {
    background-color: var(--primary-variant-color);
}

.lab-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Footer Styles - More Compact */
.landing-footer {
    background-color: var(--surface-color);
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    padding: 16px 20px;
    margin-top: auto;
}

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

.footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-left a {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.footer-left a:hover {
    transform: scale(1.05);
}

.footer-logo {
    height: 24px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-left a:hover .footer-logo {
    opacity: 1;
}

.copyright {
    font-size: 13px;
    color: #666;
}

.footer-right {
    display: flex;
    gap: 24px;
}

.footer-link {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .landing-header {
        padding: 20px 16px;
    }
    
    .main-title {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .labs-section {
        padding: 30px 16px;
    }
    
    .labs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-left {
        flex-direction: column;
        gap: 8px;
    }
}

/* Wide screens - optimize for more cards */
@media (min-width: 1400px) {
    .labs-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* Mobile Toast Notification */
.mobile-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-width: calc(100% - 40px);
    animation: slideUp 0.3s ease-out;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}

.toast-content .material-icons {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-content span {
    font-size: 14px;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.toast-close:hover {
    opacity: 1;
}

.toast-close .material-icons {
    font-size: 20px;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1976D2;
    color: white;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 1001;
    animation: slideUp 0.3s ease-out;
}

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

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-text a {
    color: white;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cookie-button {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-button-accept {
    background: white;
    color: #1976D2;
}

.cookie-button-accept:hover {
    background: #f5f5f5;
}

.cookie-button-decline {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.cookie-button-decline:hover {
    background: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}