/* Styles personnalisés pour la landing page Shilajit */

/* Import de la police Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

/* Styles généraux */
body {
    font-family: 'Inter', sans-serif;
    background-color: #121212; /* bg-dark */
    line-height: 1.6;
}

/* Container principal avec meilleur espacement */
.container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Styles pour les cartes avec design moderne */
.card {
    background: linear-gradient(135deg, #1a1a1a 0%, #222221 100%);
    border: 1px solid rgba(166, 158, 116, 0.15);
    border-radius: 2rem;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(to bottom right, rgba(0, 0, 0, 0.7), rgba(30, 30, 30, 0.8));
    transition: opacity 0.5s ease;
    z-index: -1;
}

.card:hover::after {
    opacity: 0;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(166, 158, 116, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(166, 158, 116, 0.3);
}

.card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, #A69E74, #C8BF7F, #A69E74);
    opacity: 0;
    z-index: -1;
    border-radius: 2rem;
    transition: opacity 0.4s ease;
}

.card:hover::before {
    opacity: 0.1;
}

/* Styles pour les textes avec hiérarchie améliorée */
.title {
    font-weight: 600; /* Semi-bold */
    color: #fefefe;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.subtitle {
    font-weight: 400; /* Regular */
    color: #D6D8D8;
    line-height: 1.6;
    opacity: 0.9;
}

/* Amélioration de l'espacement des sections */
.mb-8 {
    margin-bottom: 3rem !important;
}

@media (min-width: 768px) {
    .mb-8 {
        margin-bottom: 4rem !important;
    }
}

/* Espacement interne des cartes amélioré */
.card .p-6 {
    padding: 2rem !important;
}

.card .p-8 {
    padding: 2.5rem !important;
}

@media (min-width: 768px) {
    .card .p-6 {
        padding: 2.5rem !important;
    }
    
    .card .p-8 {
        padding: 3rem !important;
    }
}

/* Amélioration des grilles avec meilleur espacement */
.grid {
    gap: 2rem !important;
}

@media (min-width: 768px) {
    .grid {
        gap: 2.5rem !important;
    }
}

/* Amélioration du placement des icônes dans les sections principales */
.card .w-32 {
    width: 6rem !important;
    height: 6rem !important;
    margin: 0 auto 1.5rem auto !important;
    display: block !important;
}

.card .w-64 {
    width: 12rem !important;
    height: 12rem !important;
    margin: 0 auto 1.5rem auto !important;
    display: block !important;
}

@media (min-width: 768px) {
    .card .w-32 {
        width: 8rem !important;
        height: 8rem !important;
        margin: 0 auto 2rem auto !important;
    }
    
    .card .w-64 {
        width: 14rem !important;
        height: 14rem !important;
        margin: 0 auto 2rem auto !important;
    }
}

/* Amélioration de la structure des sections avec icônes */
.card .flex.flex-col.justify-center.items-start {
    text-align: center !important;
    align-items: center !important;
}

.card .flex.flex-col.items-center {
    text-align: center !important;
}

/* Amélioration des boutons "En savoir plus" */
.card a[data-modal] {
    margin-top: 2rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.75rem 1.5rem !important;
    background: rgba(166, 158, 116, 0.1) !important;
    border: 1px solid rgba(166, 158, 116, 0.3) !important;
    border-radius: 2rem !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.card a[data-modal]:hover {
    background: rgba(166, 158, 116, 0.2) !important;
    border-color: rgba(166, 158, 116, 0.5) !important;
    transform: translateY(-2px) !important;
}

/* Amélioration des zones de contenu */
.card .text-center.md\:text-left {
    text-align: center !important;
}

@media (min-width: 768px) {
    .card .text-center.md\:text-left {
        text-align: left !important;
    }
}

/* Amélioration de l'espacement vertical dans les cartes */
.card h1, .card h2 {
    margin-bottom: 1.5rem !important;
}

.card p {
    margin-bottom: 2rem !important;
}

/* Amélioration des boutons d'action principaux */
.card .flex.flex-col.sm\:flex-row {
    justify-content: center !important;
    margin-top: 2rem !important;
}

@media (min-width: 768px) {
    .card .flex.flex-col.sm\:flex-row {
        justify-content: flex-start !important;
    }
}

/* Style pour le logo */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.logo-img {
    height: 60px;
    margin-bottom: 0.5rem;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    color: #ffffff;
    letter-spacing: 1px;
}

@media (max-width: 640px) {
    .logo-img {
        height: 40px;
    }
    .logo-text {
        font-size: 2rem;
    }
    .logo-container {
        margin-bottom: 1rem; /* Réduction pour mobile */
    }
}

/* Styles pour les étoiles */
.stars {
    color: #D4AF37;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Styles pour le défilement des témoignages */
.testimonials-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.testimonials-slider {
    display: flex;
    animation: scroll 60s linear infinite;
    width: max-content;
}

.testimonial-card {
    flex: 0 0 auto;
    width: 300px;
    margin-right: 20px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Défilement de la moitié pour la répétition */
    }
}

/* Pause l'animation au survol */
.testimonials-slider:hover {
    animation-play-state: paused;
}

/* Animation pour les boutons et liens */
a:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Style pour le message de succès du formulaire */
.success-message {
    color: #10b981; /* vert */
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

/* Styles pour le CTA */
.cta-button {
    background: linear-gradient(45deg, #A69E74, #C8BF7F);
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    margin: 2rem auto 0;
    display: block; /* Changé de inline-block pour centrer avec margin auto */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Styles pour la modale */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: none; /* Caché par défaut */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex; /* Affiché lorsque la classe active est ajoutée */
    opacity: 1;
}

.modal-content {
    background-color: #222221;
    border: 2px solid rgba(166, 158, 116, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 90%;
    width: 800px; /* Largeur max pour desktop */
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem; /* Taille initiale */
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.modal-close:hover {
    transform: scale(1.1);
}

/* Styles pour la barre de défilement de la modale */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(166, 158, 116, 0.3);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(166, 158, 116, 0.5);
}

/* Animation pour les éléments de la modale */
.modal-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.modal-overlay.active .modal-item {
    opacity: 1;
    transform: translateY(0);
}

/* Délais pour l'animation en cascade des items */
.modal-overlay.active .modal-item:nth-child(1) { transition-delay: 0.05s; }
.modal-overlay.active .modal-item:nth-child(2) { transition-delay: 0.1s; }
.modal-overlay.active .modal-item:nth-child(3) { transition-delay: 0.15s; }
.modal-overlay.active .modal-item:nth-child(4) { transition-delay: 0.2s; }


/* Style pour le message d'erreur du formulaire */
.error-message {
    color: #ef4444; /* rouge */
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

/* Style pour le message de chargement du formulaire */
.loading-message {
    color: #f59e0b; /* orange/jaune */
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid #f59e0b;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

/* Ajustements pour les images de produits */
.product-image { /* Classe générale pour les images de produits dans les sections principales */
    max-height: 300px;
    object-fit: contain;
}

.resine-image { /* Classe générale pour l'image de résine dans la section principale */
    max-height: 250px;
    object-fit: contain;
}

/* Styles pour mobile (écrans jusqu'à 767px) */
@media (max-width: 767px) {
    .modal-content {
        padding: 1rem 0.75rem; /* Réduction du padding pour plus d'espace */
        width: 98%; /* Utilisation maximale de l'écran */
    }

    .modal-item h2 { /* Titres principaux dans la modale (ex: "Shilajit 100:1 Gélules") */
        font-size: 2rem; /* Augmenté pour mobile */
        margin-bottom: 1rem; /* Réduction de l'espace */
    }

    .modal-item h3 { /* Sous-titres dans la modale (ex: "Description", "Composition") */
        font-size: 1.4rem; /* Augmenté */
        margin-bottom: 0.5rem; /* Réduction de l'espace */
    }

    .modal-content .subtitle { /* Texte de paragraphe dans les bento-box des modales */
        font-size: 1.1rem; /* Encore augmenté */
        line-height: 1.5; /* Optimisé pour l'espace */
    }

    /* Amélioration des tailles de texte sur la page principale mobile */
    .card h1, .card h2 { /* Titres principaux des cartes */
        font-size: 3rem !important; /* Encore plus grand */
        line-height: 1.05 !important; /* Plus compact */
        margin-bottom: 1rem !important; /* Réduction de l'espace */
    }

    .card .subtitle { /* Sous-titres et descriptions des cartes */
        font-size: 1.3rem !important; /* Encore augmenté */
        line-height: 1.4 !important; /* Plus compact */
        margin-bottom: 1rem !important; /* Réduction de l'espace */
    }

    /* Amélioration des indicateurs "Cliquez pour..." */
    .clickable-card .subtitle.opacity-70 {
        font-size: 1.1rem !important; /* Plus grand */
        font-weight: 600 !important; /* Plus gras */
        opacity: 0.9 !important; /* Plus visible */
        margin-top: 1rem !important; /* Réduction de l'espace */
        padding: 0.75rem 1.25rem !important; /* Plus de padding */
        background: rgba(166, 158, 116, 0.15) !important; /* Plus visible */
        border-radius: 1.5rem !important;
        border: 1px solid rgba(166, 158, 116, 0.3) !important; /* Plus visible */
    }

    /* Amélioration de l'espacement des cartes sur mobile */
    .card .p-6, .card .p-8 {
        padding: 1.5rem 1rem !important; /* Réduction pour plus d'espace contenu */
    }

    /* Amélioration des boutons sur mobile */
    .amazon-button {
        font-size: 1.2rem !important; /* Encore plus grand */
        padding: 1.1rem 1.75rem !important; /* Plus de padding */
    }

    /* Amélioration de l'espacement des sections */
    .mb-8 {
        margin-bottom: 1.5rem !important; /* Réduction drastique pour mobile */
    }

    /* Réduction des espaces dans le container principal */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Optimisation des images pour prendre moins d'espace */
    .card .w-32 {
        width: 4rem !important;
        height: 4rem !important;
        margin: 0 auto 1rem auto !important;
    }

    .card .w-64 {
        width: 8rem !important;
        height: 8rem !important;
        margin: 0 auto 1rem auto !important;
    }

    .resine-image {
        max-height: 180px !important; /* Réduction pour mobile */
    }

    /* Images principales dans les modales produits (ex: gelules.png, resine.png) */
    #modal-gelules .w-64, /* Cible l'image avec la classe w-64 dans la modale gélules */
    #modal-resine .w-64 { /* Cible l'image avec la classe w-64 dans la modale résine */
        width: auto; /* Laisser la largeur s'ajuster */
        max-width: 60%; /* Limiter la largeur maximale de l'image */
        height: auto; /* Maintenir le ratio */
        margin-left: auto; /* Centrer l'image */
        margin-right: auto; /* Centrer l'image */
        margin-bottom: 1.5rem; /* Espace sous l'image */
    }

    .bento-grid { /* Conteneur des boîtes d'information */
        display: flex;
        flex-direction: column; /* Empiler verticalement sur mobile */
        gap: 1.5rem; /* Espacement entre les boîtes */
    }

    .bento-box { /* Boîte d'information individuelle */
        padding: 1.25rem 1rem; /* Padding intérieur ajusté */
        /* margin-bottom est géré par 'gap' du conteneur flex */
    }

    .benefit-icon { /* Icônes SVG dans les bento-box */
        width: 2rem; /* Taille réduite pour mobile */
        height: 2rem; /* Taille réduite pour mobile */
        margin-bottom: 0.75rem; /* Espace sous l'icône */
        color: #A69E74; /* Assurer que la couleur est définie pour mobile */
    }

    /* Liens d'étude dans la modale science */
    #modal-science .study-link {
        font-size: 0.85rem; /* Taille de police ajustée */
    }
    #modal-science .study-link svg {
        width: 0.8rem;
        height: 0.8rem;
    }

    /* Bouton CTA dans les modales */
    .modal-content .cta-button {
        font-size: 1rem; /* Taille de police ajustée */
        padding: 0.8rem 1.2rem; /* Padding ajusté */
        max-width: 100%; /* Permettre au bouton de prendre toute la largeur si nécessaire */
        margin-top: 1.5rem;
    }

    .modal-content .amazon-logo { /* Logo Amazon dans le bouton CTA */
        width: 20px;
        height: 20px;
    }

    .modal-close { /* Bouton de fermeture de la modale */
        font-size: 2.5rem; /* Encore plus grand pour faciliter le clic */
        padding: 0.5rem 1rem; /* Zone de clic encore plus agrandie */
        top: 0.5rem;
        right: 0.5rem;
        background: rgba(0, 0, 0, 0.5); /* Fond semi-transparent pour meilleure visibilité */
        border-radius: 50%; /* Forme circulaire */
        width: 3rem; /* Taille fixe */
        height: 3rem; /* Taille fixe */
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
    }

    /* Bouton de fermeture alternatif en bas pour mobile */
    .modal-close-bottom {
        display: block;
        width: 100%;
        background: rgba(166, 158, 116, 0.2);
        border: 1px solid rgba(166, 158, 116, 0.5);
        color: white;
        padding: 0.75rem;
        border-radius: 0.5rem;
        margin-top: 2rem;
        font-size: 1rem;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .modal-close-bottom:hover {
        background: rgba(166, 158, 116, 0.3);
    }

    /* Traits dorés pour délimiter les sections des modales sur mobile */
    .modal-item:not(:last-child)::after {
        content: "";
        display: block;
        width: 80%;
        height: 1px;
        background: linear-gradient(90deg, transparent, #A69E74, transparent);
        margin: 2rem auto;
    }

    /* La classe .info-card-image est définie mais non utilisée dans le HTML actuel des modales.
       Si elle est utilisée à l'avenir, ce style s'appliquera.
    .info-card-image {
        max-height: 150px;
    }
    */
}

/* Styles pour desktop (écrans de 768px et plus) */
@media (min-width: 768px) {
    .product-image { /* Image de produit dans les sections principales */
        max-height: 400px;
    }

    .resine-image { /* Image de résine dans les sections principales */
        max-height: 320px;
    }
    
    /* Styles pour le design bento dans les modales en version desktop */
    .modal-content .bento-grid { /* Cible .bento-grid spécifiquement dans .modal-content */
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Grille responsive */
        gap: 1.5rem;
        width: 100%;
    }
    
    .modal-content .bento-box { /* Cible .bento-box spécifiquement dans .modal-content */
        background: rgba(34, 34, 33, 0.6); /* Fond légèrement transparent */
        border: 1px solid rgba(166, 158, 116, 0.2); /* Bordure subtile */
        border-radius: 1rem; /* Coins arrondis */
        padding: 1.5rem; /* Padding intérieur */
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .modal-content .bento-box:hover {
        transform: translateY(-2px); /* Effet de soulèvement au survol */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Ombre portée au survol */
    }
    
    .benefit-icon { /* Icônes SVG dans les bento-box (version desktop) */
        width: 2.5rem; /* Taille pour desktop */
        height: 2.5rem; /* Taille pour desktop */
        margin-bottom: 1rem; /* Espace sous l'icône */
        color: #A69E74; /* Couleur de l'icône */
    }
    
    /* Styles pour les liens d'études (version desktop) */
    .study-link {
        display: inline-flex; /* Alignement correct de l'icône et du texte */
        align-items: center;
        color: #A69E74; /* Couleur du lien */
        text-decoration: none; /* Pas de soulignement */
        font-size: 0.9rem; /* Taille de police */
        margin-top: 0.5rem; /* Espace au-dessus */
        transition: color 0.3s ease;
    }
    
    .study-link:hover {
        color: #C8BF7F; /* Changement de couleur au survol */
    }
    
    .study-link svg { /* Icône externe dans le lien d'étude */
        width: 1rem;
        height: 1rem;
        margin-left: 0.25rem; /* Espace à gauche de l'icône */
    }
}

/* Style pour le logo Amazon */
.amazon-logo {
    margin-right: 0.75rem; /* Espace à droite du logo */
    transition: transform 0.3s ease;
}

.cta-button:hover .amazon-logo {
    transform: scale(1.1); /* Effet de zoom au survol du bouton */
}

/* Styles pour les boutons réseaux sociaux */
.social-link {
    background: linear-gradient(45deg, #A69E74, #C8BF7F); /* Fond dégradé */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-link:hover {
    opacity: 0.9; /* Légère transparence au survol */
}

/* Styles pour les images des cartes info (si utilisées) */
.info-card-image {
    max-height: 200px; /* Hauteur maximale */
    width: 100%; /* Pleine largeur de son conteneur */
    object-fit: cover; /* Comportement de l'image */
    border-radius: 1rem; /* Coins arrondis */
    margin-bottom: 1.5rem; /* Espace en dessous */
}

/* Styles pour les conteneurs de boutons d'action */
.action-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) { /* sm: */
    .action-buttons-container {
        flex-direction: row;
    }
}

/* Styles unifiés pour les boutons d'action */
.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    flex: 1;
    text-align: center;
    border: 2px solid transparent; /* Bordure de base pour une taille cohérente */
}

.action-button-primary {
    background-color: transparent;
    border-color: #D4AF37; /* Couleur dorée */
    color: #D4AF37;
}

.action-button-primary:hover {
    background-color: #D4AF37;
    color: #121212;
}

.action-button-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.action-button-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.action-button .amazon-logo {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    flex-shrink: 0; /* Empêche le SVG de grandir de manière incontrôlée */
}

/* Conteneur pour les boutons de la page principale */
.main-page-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) { /* sm: */
    .main-page-buttons {
        flex-direction: row;
    }
    .main-page-buttons > * {
        flex: 1;
    }
}

/* Masquer le bouton de fermeture alternatif sur desktop */
@media (min-width: 768px) {
    .modal-close-bottom {
        display: none;
    }
    
    .modal-buttons-container {
        flex-direction: row;
    }
}

/* Styles mobile pour les boutons */
@media (max-width: 767px) {
    .modal-buttons-container {
        flex-direction: column;
    }
    
    .amazon-button {
        min-width: auto;
        width: 100%;
    }
    
    .modal-content .cta-button {
        width: 100%;
        max-width: none;
    }
}

/* Styles pour les cartes cliquables */
.clickable-card {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.clickable-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 10px 20px rgba(166, 158, 116, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.clickable-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(166, 158, 116, 0.05), rgba(200, 191, 127, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 2rem;
    pointer-events: none;
}

.clickable-card:hover::after {
    opacity: 1;
}

/* Empêcher la propagation du clic sur les boutons Amazon */
.amazon-button {
    position: relative;
    z-index: 10;
}

/* Indicateur visuel pour les cartes cliquables */
.clickable-card .subtitle.opacity-70 {
    transition: opacity 0.3s ease;
}

.clickable-card:hover .subtitle.opacity-70 {
    opacity: 1;
}

.rating-card {
    background-color: #1a1a1a;
    border: 1px solid rgba(166, 158, 116, 0.2);
    transition: all 0.3s ease;
}

.rating-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 6px 6px rgba(166, 158, 116, 0.15);
    border-color: rgba(166, 158, 116, 0.4);
}

.stars-container {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

.stars-container svg {
    width: 2.5rem;
    height: 2.5rem;
}

.rating-highlight {
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.8), 0 0 25px rgba(212, 175, 55, 0.6);
    color: #FFD700;
}

.rating-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.05rem; /* Very minimal gap for tight spacing */
    line-height: 1;
}

@media (min-width: 768px) {
    .rating-group {
        align-items: flex-start;
    }
}

.rating-group p {
    margin: 0 !important; /* Remove any default margins */
}

.rating-group .stars-container {
    margin: 0.1rem 0 !important; /* Minimal margin for stars */
}
