/* --- [BEGIN] CINEMATIC & ELEGANT THEME --- */

/* --- 1. Global Styles & Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@300;400;600&family=Cairo:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Cairo', sans-serif;
    background-color: #121212;
    color: #EAEAEA;
    line-height: 1.7;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

/* --- 2. Header & Title --- */
header {
    text-align: center;
    padding: 4rem 1rem;
    position: relative;
    background: linear-gradient(180deg, rgba(24, 24, 24, 0.9) 0%, rgba(18, 18, 18, 1) 100%);
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    font-weight: 300;
    color: #A0A0A0;
    max-width: 600px;
    margin: 0 auto;
}

/* Language Toggle Button - Redesigned */
#language-toggle {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background-color: #D4AF37;
    color: #121212;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

#language-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

/* --- 3. Filters Section --- */
.filters-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem 3rem 2rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    border-bottom: 1px solid #2a2a2a;
}

.filter-group label {
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: #A0A0A0;
    font-size: 0.9rem;
}

.filter-group select {
    padding: 0.8rem;
    border: 1px solid #333;
    border-radius: 8px;
    background-color: #1E1E1E;
    color: #EAEAEA;
    font-family: inherit;
    font-size: 1rem;
    min-width: 280px;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

/* --- 4. Character Grid & Card Intro Animation --- */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 5. The Interactive Character Card --- */
.character-card {
    background-color: #1E1E1E;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    height: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeIn 0.5s ease-out backwards;
}

.character-card .character-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.6s ease;
}

.character-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(18, 18, 18, 1) 10%, rgba(18, 18, 18, 0.6) 50%, rgba(18, 18, 18, 0) 100%);
    pointer-events: none;
}

.character-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.25);
}

.character-card:hover .character-image {
    transform: scale(1.05);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.character-card:hover .card-content {
    transform: translateY(100%);
}

.character-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.25rem;
}

.character-show {
    font-size: 0.9rem;
    color: #A0A0A0;
    font-style: italic;
    font-weight: 300;
}

/* --- CSS CHANGES FOR "BIGGER" HOVER START HERE --- */

.perfume-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding: 2rem; /* CHANGED: Increased padding for more space */
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.character-card:hover .perfume-info {
    transform: translateY(0);
}

.perfume-image {
    max-width: 120px; /* CHANGED: Significantly larger bottle image */
    height: auto;
    margin-bottom: 1.5rem; /* CHANGED: More space below the bottle */
    border-radius: 5px;
}

.perfume-name {
    font-size: 1.6rem; /* CHANGED: Larger perfume name */
    font-weight: 600;
    color: #D4AF37;
    margin-bottom: 1rem; /* CHANGED: More space below the name */
}

.perfume-reason {
    font-size: 1rem; /* CHANGED: Larger, more readable description text */
    color: #cccccc;
    font-weight: 300;
    line-height: 1.6; /* ADDED: Ensured good line spacing */
    max-width: 90%;
}

/* --- END OF CHANGES --- */


/* --- 6. Language & Responsive Adjustments --- */
body[dir="ltr"] {
    direction: ltr;
    text-align: left;
}
body[dir="ltr"] #language-toggle {
    left: unset;
    right: 1.5rem;
}

@media (max-width: 768px) {
    header h1 { font-size: 2.8rem; }
}

@media (max-width: 600px) {
    header { padding: 3rem 1rem; }
    header h1 { font-size: 2.2rem; }
    header p { font-size: 1rem; }
    .filters-container { flex-direction: column; gap: 1rem; padding: 1.5rem; }
    .character-grid { padding: 2rem 1rem; gap: 2rem; }
    .character-card { height: 420px; }
}