:root {
    --body-bg: #fdfaf6;
    --main-bg: #ffffff;
    --text-color: #4a4a4a;
    --header-bg: #4F5B93;
    --nav-bg: #616EA1;
    --footer-text: #4F5B93;
    --border-color: #e0e0e0;
    --secondary-bg: #f9f9f9;
    --heading-color: #4F5B93;
    --link-color: #616EA1;
    --blockquote-bg: #f0f2f8;
    --card-bg: #ffffff;
    --shadow-color: rgba(0,0,0,0.05);
}

body.dark-mode {
    --body-bg: #121212;
    --main-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --header-bg: #111111;
    --nav-bg: #222222;
    --footer-text: #909090;
    --border-color: #333333;
    --secondary-bg: #252525;
    --heading-color: #bb86fc;
    --link-color: #9fa8da;
    --blockquote-bg: #2c2c2c;
    --card-bg: #2d2d2d;
    --shadow-color: rgba(0,0,0,0.5);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: var(--body-bg);
    font-size: 18px; /* Larger font for 40+ age */
    transition: background-color 0.3s ease, color 0.3s ease;
}

header {
    background-color: var(--header-bg); 
    color: white;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.header-img {
    height: 80px;
    width: auto;
    border-radius: 50%;
    border: 2px solid white;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
}

header p {
    margin: 0.2rem 0 0 0;
    font-size: 0.9rem;
}

nav {
    background-color: var(--nav-bg); 
    padding: 10px 0;
    margin-bottom: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

nav ul li a:hover {
    color: #fdfaf6;
    text-decoration: underline;
}

main {
    background-color: var(--main-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-color);
    min-height: 400px;
}

footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--footer-text);
    border-top: 1px solid var(--border-color);
}

.hashtags-section {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--secondary-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.hashtags-section h3 {
    color: var(--heading-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
}

.hashtag-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* Character Archive Styles */
.character-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform 0.3s ease;
}

.character-card:hover {
    transform: translateY(-5px);
}

.character-header {
    display: flex;
    align-items: center;
    background-color: var(--secondary-bg);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.character-img-large {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--heading-color);
    margin-right: 1.5rem;
}

.character-info h3 {
    margin: 0;
    color: var(--heading-color);
    font-size: 1.5rem;
}

.film-title {
    margin: 0.5rem 0 0;
    font-style: italic;
    color: var(--text-color);
    opacity: 0.8;
}

.character-content {
    padding: 1.5rem;
}

.character-content h4 {
    color: var(--heading-color);
    margin-top: 0;
    border-bottom: 2px solid var(--link-color);
    display: inline-block;
    padding-bottom: 5px;
}

.character-content blockquote {
    font-style: italic;
    border-left: 4px solid var(--link-color);
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background-color: var(--blockquote-bg);
    color: var(--text-color);
}

.dark-mode-toggle {
    background: none;
    border: 2px solid white;
    color: white;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.dark-mode-toggle:hover {
    background-color: white;
    color: var(--nav-bg);
}

.dark-mode-toggle i {
    font-size: 1.1rem;
}

@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .dark-mode-toggle {
        margin-left: 0;
        margin-top: 10px;
    }
}

.hashtag {
    color: var(--link-color);
    font-size: 0.9rem;
    font-weight: 500;
    background-color: var(--card-bg);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: default;
}

.hashtag:hover {
    background-color: var(--heading-color);
    color: white;
    border-color: var(--heading-color);
    transform: translateY(-2px);
}

h2 {
    color: var(--heading-color);
    border-bottom: 2px solid var(--link-color);
    padding-bottom: 10px;
}

.filter-controls {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    background: var(--body-bg);
    padding: 15px;
    border-radius: 8px;
}

.filter-controls select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--link-color);
    background-color: var(--card-bg);
    color: var(--heading-color);
    font-size: 1rem;
    cursor: pointer;
    min-width: 150px;
}

.filter-controls select:focus {
    outline: none;
    border-color: var(--heading-color);
    box-shadow: 0 0 5px var(--shadow-color);
}

.film-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
}

.film-item {
    background: var(--secondary-bg);
    padding: 15px;
    border-radius: 5px;
    text-align: left;
    transition: transform 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.film-item:hover {
    transform: translateX(10px);
    background: var(--blockquote-bg);
}

.film-item a {
    text-decoration: none;
    color: var(--heading-color);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.film-thumbnail {
    width: 80px;
    height: 110px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.film-info {
    flex-grow: 1;
}

.film-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

.film-info p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: normal;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 20px 0;
}

.back-link {
    text-decoration: none;
    color: var(--heading-color);
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}

.contact-form label {
    margin-top: 10px;
    color: #4F5B93;
}

.contact-form input, .contact-form textarea {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.contact-form button {
    margin-top: 20px;
    padding: 10px;
    background-color: var(--link-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.2s;
}

.contact-form button:hover {
    background-color: var(--heading-color);
}

/* Wishes List Styles */
.wishes-list-container {
    margin-top: 3rem;
}

.wishes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wish-item {
    background: var(--secondary-bg);
    padding: 15px;
    border-radius: 8px;
    border-left: 5px solid var(--link-color);
}

.wish-item strong {
    color: var(--heading-color);
    display: block;
    margin-bottom: 5px;
}

.wish-item p {
    margin: 0;
    font-style: italic;
}

.translate-btn {
    background: none;
    border: none;
    color: var(--link-color);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
    margin-top: 5px;
    text-decoration: underline;
}

.translate-btn:hover {
    color: var(--heading-color);
}

.like-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--heading-color);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px 10px;
    margin-top: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
}

.like-btn:hover {
    background-color: var(--secondary-bg);
    border-color: var(--link-color);
}

.like-btn.liked {
    color: #e74c3c;
    border-color: #e74c3c;
    background-color: #fff5f5;
}

.like-count {
    font-weight: bold;
}

.translated-text {
    margin-top: 10px !important;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
    color: var(--text-color);
    font-style: normal !important;
}


.wish-date {
    display: block;
    font-size: 0.8rem;
    color: var(--heading-color);
    margin-top: 10px;
    text-align: right;
}

.profile-gallery {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.hashtag-list {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hashtag-list a {
    background-color: #f1f3ee;
    color: #4F5B93;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.2s, color 0.2s;
    border: 1px solid #e6ebe0;
}

.hashtag-list a:hover {
    background-color: #616EA1;
    color: white;
    border-color: #616EA1;
}

.cast-list {
    margin: 20px 0;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--secondary-bg);
    padding: 15px;
    border-radius: 5px;
}

.cast-list strong {
    color: var(--heading-color);
    margin-right: 5px;
}

.imdb-rating {
    display: inline-flex;
    align-items: center;
    background-color: #f5c518;
    color: #000000;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.imdb-icon {
    margin-right: 5px;
    border: 1px solid #000;
    padding: 0 2px;
    border-radius: 2px;
    font-size: 0.8rem;
}

.imdb-link-container {
    margin-top: 30px;
    text-align: center;
    border-top: 1px dashed var(--border-color);
    padding-top: 20px;
}

.imdb-external-link {
    display: inline-block;
    color: #ffffff;
    background-color: var(--link-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s;
}

.imdb-external-link:hover {
    background-color: var(--heading-color);
}

/* Slider Styles */
.slider-container {
    max-width: 800px;
    position: relative;
    margin: 0 auto 2rem auto;
}

.slider {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.slide {
    display: none;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    vertical-align: middle;
}

.caption {
    color: white;
    font-size: 1.2rem;
    padding: 12px 24px;
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7); /* Standard semi-transparent black for captions */
    box-sizing: border-box;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
    text-decoration: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: var(--heading-color);
    opacity: 0.8;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: var(--link-color);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: var(--heading-color);
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

.about-img {
    width: 250px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px var(--shadow-color);
    border: 3px solid white;
}

.achievements-list {
    list-style: none;
    padding: 0;
}

.achievements-list li {
    background: var(--secondary-bg);
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 5px;
    border-left: 4px solid var(--link-color);
}

.trivia-box {
    background-color: var(--body-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.trivia-box ul {
    margin: 0;
    padding-left: 20px;
}

.trivia-box li {
    margin-bottom: 8px;
}

.rose-garden-section {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--body-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.rose-garden-section h3 {
    color: var(--heading-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--link-color);
    padding-bottom: 10px;
}

.quote-section {
    text-align: center;
    margin-top: 30px;
}

.slider-dots {
    text-align: center;
}

.rose-info-box {
    margin-top: 30px;
    padding: 25px;
    background-color: var(--secondary-bg);
    border-left: 6px solid #ff7f50; /* Rose/Coral color stays for thematic reasons */
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow-color);
}

.rose-info-box h4 {
    color: #ff7f50;
    margin-top: 0;
    font-size: 1.4rem;
}

.rose-info-box p {
    font-style: italic;
    color: #555;
}

/* Marquee Styles */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: #f1f3ee;
    padding: 20px 0;
    margin-top: 3rem;
    border-top: 2px solid #616EA1;
    border-bottom: 2px solid #616EA1;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee 35s linear infinite;
}

.marquee-content img {
    height: 120px;
    margin: 0 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.marquee-reverse {
    animation: marquee-reverse 35s linear infinite;
}

/* New Marquee Gallery for Index Page */
.marquee-gallery {
    width: 100%;
    overflow: hidden;
    background: var(--main-bg);
    padding: 10px 0;
    margin-top: 2rem;
}

.marquee-gallery-content {
    display: flex;
    width: max-content;
    animation: index-marquee 60s linear infinite;
}

.marquee-gallery-content img {
    height: 25px;
    width: auto;
    display: block;
    margin: 0;
    padding: 0;
}

@keyframes index-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 600px) {
    .film-item {
        flex-direction: column;
        text-align: center;
    }

    .film-item a {
        flex-direction: column;
    }

    .film-thumbnail {
        width: 100%;
        height: 200px;
    }

    .profile-gallery {
        flex-direction: column;
        align-items: center;
    }
    
    .about-img {
        max-width: 100%;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }
    nav ul li {
        margin: 5px 0;
    }
}

/* Gallery Section */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    line-height: 0;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.gallery-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
}

.gallery-item:hover .gallery-img {
    filter: brightness(0.8);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7); /* standard semi-transparent black */
    color: white;
    padding: 8px;
    font-size: 0.85rem;
    line-height: 1.2;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}


@media only screen and (max-width: 800px){
    .gallery-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media only screen and (max-width: 500px){
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Modal for Gallery */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    border-radius: 5px;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--nav-bg);
    color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-color);
}

.cookie-consent-banner p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.cookie-consent-buttons {
    display: flex;
    gap: 15px;
}

.cookie-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.accept-btn {
    background-color: #c9a66b;
    color: #1a1a1a;
}

.accept-btn:hover {
    background-color: #b08d55;
}

.reject-btn {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.reject-btn:hover {
    background-color: rgba(253, 250, 246, 0.1);
}

@media (min-width: 768px) {
    .cookie-consent-banner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 15px 40px;
    }
    
    .cookie-consent-banner p {
        margin-bottom: 0;
        margin-right: 20px;
    }
}

.film-poster-floating {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
    max-width: 100px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-top: 5px;
}

@media (max-width: 600px) {
    .film-poster-floating {
        float: none;
        display: block;
        margin: 0 auto 20px auto;
        max-width: 100%;
    }
}

/* Quotes & Soundboard Section */
.soundboard-section {
    margin-bottom: 3rem;
    text-align: center;
}

.soundboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.sound-card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.sound-card:hover {
    transform: translateY(-5px);
    background-color: #4F5B93;
    color: white;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.sound-card:hover h3, .sound-card:hover p {
    color: white;
}

.sound-icon {
    font-size: 2rem;
}

.sound-info h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #4F5B93;
}

.sound-info p {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    color: #666;
}

.famous-quotes-list {
    background-color: #f4f6ff;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
}

.famous-quotes-list h3 {
    text-align: center;
    color: #4F5B93;
    margin-bottom: 2rem;
}

.quotes-container blockquote {
    background: white;
    padding: 1.5rem;
    border-left: 5px solid #4F5B93;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-style: italic;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

@media (max-width: 600px) {
    .soundboard-grid {
        grid-template-columns: 1fr;
    }
}
