/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #161616;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header - TED Style */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #e6e6e6;
    padding: 15px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-weight: 800;
    font-size: 24px;
    color: #e62b1e; /* Generic Red similar to TED */
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo span {
    color: #000;
}

.nav-links {
    display: none; /* Hidden on mobile initially */
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 20px;
        font-size: 14px;
        font-weight: 600;
        color: #161616;
    }
}

/* Main Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Video Section */
.video-section {
    background-color: #000;
    padding: 0;
    position: relative; /* For absolute positioning of mockup */
}

@media (min-width: 768px) {
    .video-section {
        padding: 30px 0;
    }
}

.video-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Google Shopping Mockup Stack */
.mockup-stack {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 300px; /* ~30% on desktop */
    z-index: 1000;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: none; /* Hidden initially */
}

.mockup-stack.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.google-mockup {
    position: relative;
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-family: 'Roboto', Arial, sans-serif;
    overflow: hidden;
    margin-bottom: 15px; /* Space between cards */
}

/* Remove margin from last child */
.google-mockup:last-child {
    margin-bottom: 0;
}

.mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #5f6368;
    font-size: 14px;
}

.mockup-header span {
    font-weight: 500;
    color: #202124;
}

.mockup-body {
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.mockup-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mockup-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mockup-category {
    font-size: 10px;
    color: #70757a;
    margin-bottom: 2px;
}

.mockup-title {
    font-size: 14px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 4px;
    line-height: 1.2;
}

.mockup-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    margin-bottom: 6px;
}

.stars {
    color: #fbbc04;
}

.reviews {
    color: #70757a;
}

.mockup-price {
    font-size: 16px;
    font-weight: 700;
    color: #202124;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.free-shipping {
    font-size: 10px;
    color: #188038;
    font-weight: 500;
}

.mockup-btn {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    width: 100%;
    display: block;
}

.mockup-btn:hover {
    background-color: #1557b0;
}

.btn-highlight {
    background-color: #188038; /* Green for best value */
}

.btn-highlight:hover {
    background-color: #13662d;
}

/* Mobile Responsive Mockup */
@media (max-width: 768px) {
    .mockup-stack {
        width: 140px; /* Compact width */
        right: 10px; /* Position bottom-right */
        bottom: 10px;
        transform: translateY(50px);
    }
    
    .mockup-stack.visible {
        transform: translateY(0);
    }
    
    .google-mockup {
        width: 100%;
        font-size: 11px; /* Smaller base font */
        margin-bottom: 10px;
    }

    .mockup-header {
        padding: 6px 10px;
        font-size: 10px;
    }

    .mockup-body {
        flex-direction: column; /* Stack vertically */
        padding: 10px;
        gap: 8px;
        text-align: center;
    }

    .mockup-image {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }

    .mockup-details {
        align-items: center; /* Center align text */
        width: 100%;
    }

    .mockup-category {
        font-size: 9px;
    }

    .mockup-title {
        font-size: 11px;
        margin-bottom: 3px;
    }

    .mockup-rating {
        justify-content: center;
        margin-bottom: 4px;
        font-size: 9px;
    }

    .mockup-price {
        font-size: 13px;
        justify-content: center;
        margin-bottom: 6px;
    }

    .free-shipping {
        display: none; /* Hide to save space on mobile */
    }

    .mockup-btn {
        padding: 4px 10px;
        font-size: 10px;
    }
}

/* Info Section */
.info-section {
    padding: 30px 0 60px;
}

.meta-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #555;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

.separator {
    color: #ccc;
}

.headline {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #161616;
}

.speaker-name {
    font-size: 16px;
    font-weight: 400;
    color: #555;
    margin-bottom: 30px;
}

.speaker-name strong {
    color: #161616;
    font-weight: 700;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 900px) {
    .content-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* Description */
.description h3 {
    font-size: 14px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.description p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333;
}

.read-more {
    color: #e62b1e;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

/* Sidebar */
.sidebar {
    border-top: 1px solid #eee;
    padding-top: 30px;
}

@media (min-width: 900px) {
    .sidebar {
        border-top: none;
        border-left: 1px solid #eee;
        padding-top: 0;
        padding-left: 30px;
    }
}

.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
}

.related-talk {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    cursor: pointer;
}

.thumb {
    width: 100px;
    height: 60px;
    background-color: #eee;
    border-radius: 4px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.talk-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.talk-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}

.talk-speaker {
    font-size: 12px;
    color: #666;
}

/* Footer */
.site-footer {
    background-color: #161616;
    color: #fff;
    padding: 40px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.footer-logo {
    font-weight: 800;
    font-size: 20px;
    color: #e62b1e;
}

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