/* Random Pick Page Styles - For use with Site.master */

/* Random Picker Hero */
.picker-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 20px 60px;
    margin-top: 80px;
}

.picker-hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--noir) 50%, var(--deep-violet) 100%);
}

.picker-hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--noir) 70%);
}

.picker-hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 600px;
}

.picker-hero__icon {
    margin-bottom: 30px;
}

.picker-hero__icon i {
    font-size: 100px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--ruby) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: diceShake 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes diceShake {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-10deg) scale(1.05); }
    75% { transform: rotate(10deg) scale(1.05); }
}

.picker-hero__title {
    font-family: var(--font);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--pearl);
}

.picker-hero__title span {
    background: linear-gradient(135deg, var(--gold) 0%, var(--ruby) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.picker-hero__desc {
    font-size: 1.1rem;
    color: var(--silver);
    margin-bottom: 30px;
}

/* Filters */
.picker-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.picker-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.picker-filter label {
    color: var(--silver);
    font-size: 0.9rem;
}

.picker-filter select {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--pearl);
    font-family: var(--font);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.picker-filter select:hover,
.picker-filter select:focus {
    border-color: var(--gold);
    outline: none;
}

.picker-filter select option {
    background: var(--charcoal);
}

/* Pick Button */
.picker-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 50px;
    background: linear-gradient(135deg, var(--ruby) 0%, var(--gold) 100%);
    border: none;
    border-radius: 50px;
    color: white;
    font-family: var(--font);
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    box-shadow: 0 10px 40px rgba(227, 27, 84, 0.4);
}

.picker-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 60px rgba(227, 27, 84, 0.5);
}

.picker-btn:active {
    transform: scale(0.95);
}

.picker-btn i {
    font-size: 1.5rem;
    animation: shuffle 0.5s ease-in-out infinite;
    animation-play-state: paused;
}

.picker-btn:hover i {
    animation-play-state: running;
}

@keyframes shuffle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

.picker-hero__count {
    margin-top: 20px;
    color: var(--silver);
    font-size: 0.9rem;
}

/* Picker Stats */
.picker-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    /* backdrop-filter removed for GPU performance */
}

.picker-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    min-width: 80px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.picker-stat:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
}

.picker-stat__number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.picker-stat__label {
    font-size: 0.8rem;
    color: var(--silver);
    margin-top: 5px;
}

/* Result Section */
.result-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.result-card {
    display: flex;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    animation: resultSlideIn 0.6s var(--ease-out-expo);
    /* backdrop-filter removed for GPU performance */
}

@keyframes resultSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.result-card__poster {
    position: relative;
    width: 250px;
    flex-shrink: 0;
}

.result-card__poster img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.result-card__badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    background: var(--ruby);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.result-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-card__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pearl);
    margin-bottom: 15px;
}

.result-card__meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.result-card__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-weight: 600;
}

.result-card__year {
    color: var(--silver);
}

.result-card__category {
    padding: 4px 12px;
    background: rgba(245, 166, 35, 0.2);
    border: 1px solid var(--gold);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--gold);
}

.result-card__summary {
    font-size: 0.95rem;
    color: var(--silver);
    line-height: 1.7;
    margin-bottom: 20px;
    max-height: 100px;
    overflow-y: auto;
}

.result-card__actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.result-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    text-decoration: none;
    border: none;
}

.result-card__btn--primary {
    background: linear-gradient(135deg, var(--ruby), var(--crimson));
    color: white;
}

.result-card__btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(227, 27, 84, 0.4);
}

.result-card__btn--secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--pearl);
}

.result-card__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
}

/* History Section */
.history-section {
    margin-top: 60px;
    padding: 40px 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.history-title {
    font-size: 1.3rem;
    color: var(--pearl);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.history-title i {
    color: var(--gold);
}

.history-clear {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(227, 27, 84, 0.1);
    border: 1px solid rgba(227, 27, 84, 0.3);
    border-radius: 8px;
    color: var(--ruby);
    font-family: var(--font);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-clear:hover {
    background: rgba(227, 27, 84, 0.2);
    border-color: var(--ruby);
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.history-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    display: block;
}

.history-item:hover {
    transform: scale(1.05);
}

.history-item img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.history-item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 10px;
}

.history-item__title {
    font-size: 0.75rem;
    color: white;
    font-weight: 500;
    line-height: 1.2;
}

/* Responsive */
@media (max-width: 768px) {
    .picker-hero {
        min-height: 60vh;
        padding: 100px 20px 40px;
        margin-top: 70px;
    }
    
    .picker-hero__icon i {
        font-size: 70px;
    }
    
    .picker-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .picker-stats {
        padding: 15px;
        gap: 10px;
    }
    
    .picker-stat {
        padding: 10px 15px;
        min-width: 70px;
    }
    
    .picker-stat__number {
        font-size: 1.4rem;
    }
    
    .picker-stat__label {
        font-size: 0.7rem;
    }
    
    .result-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .result-card__poster {
        width: 200px;
        margin: 0 auto;
    }
    
    .result-card__actions {
        justify-content: center;
    }
    
    .result-card__title {
        font-size: 1.5rem;
    }
    
    .result-card__meta {
        justify-content: center;
    }
    
    .history-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .history-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .picker-hero {
        min-height: 55vh;
        padding: 90px 15px 30px;
    }
    
    .picker-hero__icon i {
        font-size: 60px;
    }
    
    .picker-btn {
        padding: 14px 35px;
        font-size: 1.1rem;
    }
    
    .picker-filter select {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .result-card__poster {
        width: 160px;
    }
    
    .result-card__btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .history-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
