/* Home Page Specific Styles */

/* Browser Address Bar Styles */
.browser-bar {
    background-color: #e0e0e0;
    padding: 0.42% 0.78%;
    display: flex;
    align-items: center;
    gap: 0.52%;
    font-size: 0.63rem;
    color: #666;
}

.window-controls {
    display: flex;
    gap: 0.31%;
}

.window-control {
    width: 0.63%;
    height: 0.65%;
    border-radius: 50%;
}

.window-control.red { background-color: #ff5f57; }
.window-control.yellow { background-color: #ffbd2e; }
.window-control.green { background-color: #28ca42; }

.url-hint {
    margin-left: auto;
}

/* Main Banner Styles - Now Slider */
.banner {
    width: 68.75%;
    height: 28.34%;
    position: relative;
    margin: auto;
    border-radius: 0;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

/* Slider Styles */
.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img, .slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.42%;
}

.slide-content {
    position: absolute;
    bottom: 7.63%;
    left: 3.79%;
    width: 40%;
    max-width: 600px;
    color: white;
    text-shadow: 0.1% 0.1% 0.22% rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    pointer-events: none; /* Allow clicks to pass through transparent parts */
    overflow: hidden; /* Ensure content stays within bounds */
}

.slide-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0; /* Crucial for flexbox truncation */
}

.slide-content h2 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block; /* Ensure block display for width calc */
}

.slide-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
}

/* Play Button */
.play-button {
    position: relative;
    width: auto;
    min-width: 140px;
    height: 48px;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: auto; /* Re-enable clicks for button */
    backdrop-filter: blur(4px);
    flex-shrink: 0; /* Prevent button shrinking */
}

.play-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.play-icon {
    width: 1.04%;
    height: 1.08%;
    object-fit: contain;
}

.play-text {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 1.56%;
    right: 1.56%;
    display: flex;
    gap: 0.52%;
    pointer-events: none;
    z-index: 10;
}

.slider-nav button {
    background: transparent;
    border: none;
    width: 2.03%;
    height: 2.11%;
    padding: 0;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav button:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.slider-nav .nav-icon {
    width: 2.03%;
    height: 2.11%;
    object-fit: contain;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 0.54%;
    right: 1.56%;
    display: flex;
    gap: 0.52%;
    justify-content: center;
    width: 4.58%;
    margin-right: 0;
}

.dot {
    width: 0.63%;
    height: 0.65%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #fff;
}

/* Content styles now inherited from common.css */

/* Home page specific slider container */
.slider-container {
    position: relative;
    overflow: hidden;
}

/* Card styles now inherited from common.css */

/* Card interactions now inherited from common.css */

/* Left/Right Button Styles - Removed */
.slider-btn {
    display: none;
}

/* Hide download button in index page */
.download-btn {
    display: none !important;
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .banner {
        width: 100% !important;
        height: 20.69% !important;
        min-height: 168px;
        background: radial-gradient(54% 54% at 88% 50%, rgba(16,16,16,0) 46%, #101010 100%);
        border-radius: 0;
        filter: blur(0);
        margin: 64px auto 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    .slider {
        width: 100%;
        height: 100%;
        min-height: 168px;
    }
    
    .slider-container {
        width: 100%;
        height: 100%;
        min-height: 168px;
    }
    
    .slide {
        width: 100%;
        height: 100%;
        min-height: 100%;
    }
    
    .slide-bg {
        width: 100%;
        height: 100%;
        min-height: 100%;
    }
    
    /* Hide slide-content, play-button, and slider-nav on mobile */
    .slide-content {
        display: none !important;
    }
    
    .play-button {
        display: none !important;
    }
    
    .slider-nav {
        display: none !important;
    }
    
    
    .slider-dots {
        position: absolute !important;
        bottom: 6px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        width: auto !important;
        display: flex !important;
        gap: 10px !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        z-index: 20 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .slider-dots .dot {
        width: 12px !important;
        height: 12px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.5) !important;
        cursor: pointer !important;
        transition: background 0.3s !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .slider-dots .dot.active {
        background: #fff !important;
    }
    
    /* Mobile card layout now inherited from common.css */
}