/* File: assets/css/carousel-styles.css */
/* Home page carousel specific styles - v5 (Cleaned & Final) */

/* ==========================================================================
   Carousel Container & Header
   ========================================================================== */

.as-home-carousel-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
}

.as-carousel-header {
    text-align: center;
    margin-bottom: 50px;
}

.as-carousel-header h2 {
    font-size: 48px;
    font-weight: 700;
    color: #1d2327;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #181743 0%, #f38221 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.as-carousel-header p {
    font-size: 18px;
    color: #646970;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   Main Carousel Structure
   ========================================================================== */

.as-home-carousel {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px 20px;
}

.as-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 20px; /* Prevents hover effect from being clipped */
    margin: 0;
}

.as-carousel-track {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

/* ==========================================================================
   Carousel Items & Cards
   ========================================================================== */

.as-carousel-item {
    flex: 0 0 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
    min-height: 450px;
    opacity: 0.7;
    transform: scale(0.95);
    transition: all 0.4s ease;
}

.as-carousel-item.active {
    opacity: 1;
    transform: scale(1);
}

.as-carousel-spotlight-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.as-carousel-spotlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Card Image */
.as-carousel-spotlight-image {
    height: 250px;
    min-height: 250px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: #f8f9fa;
}

.as-carousel-spotlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

.as-carousel-spotlight-card:hover .as-carousel-spotlight-image img {
    transform: scale(1.05);
}

/* Card Content */
.as-carousel-spotlight-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: white;
}

.as-carousel-spotlight-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #181743;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.as-carousel-spotlight-info p {
    font-size: 14px;
    color: #646970;
    line-height: 1.4;
    margin: 0 0 12px 0;
}

.as-carousel-spotlight-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0;
    padding-top: 12px;
    border-top: 1px solid #f0f0f1;
}

.as-carousel-spotlight-size {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #181743;
    font-weight: 600;
    background: rgba(24, 23, 67, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
}

.as-carousel-vote-display {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #646970;
    font-weight: 500;
}

/* ==========================================================================
   Vote Button
   ========================================================================== */

.as-carousel-spotlight-actions {
    margin-top: auto;
    flex-shrink: 0;
}

.as-carousel-vote-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    color: #646970;
    text-decoration: none;
}

.as-carousel-vote-btn:hover:not(:disabled) {
    border-color: #f38221;
    color: #f38221;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 130, 33, 0.2);
}

.as-carousel-vote-btn i {
    font-size: 16px;
}

.as-carousel-vote-text {
    flex-grow: 1;
    text-align: left;
    margin-left: 5px;
}

.as-carousel-vote-count {
    font-weight: 700;
    background-color: rgba(0,0,0,0.05);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.as-carousel-vote-btn.voted,
.as-carousel-vote-btn:disabled {
    cursor: not-allowed;
    background: linear-gradient(135deg, #f38221 0%, #ff9642 100%);
    border-color: #f38221;
    color: white;
    opacity: 0.8;
}

.as-carousel-vote-btn.voted .as-carousel-vote-count,
.as-carousel-vote-btn:disabled .as-carousel-vote-count {
    background-color: rgba(255,255,255,0.2);
}

.as-carousel-vote-btn:disabled:hover {
    box-shadow: 0 4px 12px rgba(243, 130, 33, 0.3);
}

/* ==========================================================================
   Navigation Controls (Arrows & Dots) - v6 FINAL
   ========================================================================== */

/* This is the main container for the bottom navigation */
.as-carousel-navigation-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

/* This rule targets ONLY the arrow buttons */
.as-carousel-navigation-controls .as-carousel-nav {
    position: static;
    transform: none;
    width: 40px;
    height: 40px;
    font-size: 20px;
    border: none;
    color: #888;
    background-color: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    padding: 0;
}

/* Updated hover effect for arrows */
.as-carousel-navigation-controls .as-carousel-nav:hover {
    color: #f38221;
    transform: scale(1.2);
}

.as-carousel-navigation-controls .as-carousel-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    color: #bbb;
    transform: scale(1);
}

/* This container holds the dots */
.as-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0;
}

/* This rule targets ONLY the dots with higher specificity to override the theme */
.as-home-carousel .as-carousel-navigation-controls .as-carousel-dots button.as-carousel-dot {
    width: 12px;
    min-width: 12px; /* This is the key fix for the oval shape */
    height: 12px;
    min-height: 12px; 
    border-radius: 50%;
    border: none;
    background: #c3c4c7;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    box-shadow: none;
    outline: none;
}

.as-home-carousel .as-carousel-dots button.as-carousel-dot:hover {
    background: #f38221;
}

.as-home-carousel .as-carousel-dots button.as-carousel-dot.active {
    background: #f38221; /* Solid orange color */
    transform: scale(1.3);
}

.as-home-carousel .as-carousel-dots button.as-carousel-dot:focus-visible {
    outline: 2px solid #f38221;
    outline-offset: 2px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.as-carousel-footer {
    text-align: center;
    margin-top: 50px;
}

.as-carousel-submit-btn-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #f38221 0%, #ff9642 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(243, 130, 33, 0.3);
    font-family: inherit; /* Ensure button inherits font */
    line-height: 1; /* Prevent line-height issues */
}

.as-carousel-submit-btn-home:hover {
    background: linear-gradient(135deg, #ff9642 0%, #f38221 100%);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(243, 130, 33, 0.4);
    text-decoration: none;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .as-carousel-item {
        flex-basis: calc(50% - 12px); /* Use flex-basis for better responsive handling */
        max-width: calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .as-carousel-spotlight-card {
        min-height: 380px;
    }

    .as-carousel-spotlight-image {
        height: 200px;
        min-height: 200px;
    }
}

@media (max-width: 640px) {
    .as-carousel-item {
        flex-basis: 100%;
        max-width: 100%;
    }
    .as-carousel-spotlight-card {
        min-height: 420px;
    }
}