/*
Theme Name: GamerDic
Theme URI: https://gamerdic.es
Description: Standalone theme for GamerDic - Diccionario de videojuegos
Author: FA
Version: 5.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gamerdic
*/

/* WP-specific overrides only - all styling comes from the original CSS files */

/* Hide WP admin bar spacing */
html {
    margin-top: 0 !important;
}

/* Force body background - WP global styles may override */
body {
    background-color: #53560a !important;
}

/* Fix menu background */
nav#menu {
    background-color: #333;
    overflow: hidden;
}

/* WP search form integration */
#buscador form {
    display: inline;
}

/* WP nav menu: strip ul/li if wp_nav_menu is used as fallback */
.footer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu li {
    display: inline;
}

.footer-menu li a {
    color: #BDC12B;
    padding: 2px;
    font-family: Economica;
    font-size: 1em;
}

/* Quiz styles */
#quiz-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.quiz-btn {
    display: inline-block;
    background-color: #787C20;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

.quiz-btn:hover {
    background-color: #5a5d15;
}

#quiz-progress {
    margin-bottom: 20px;
    font-size: 14px;
    color: #999;
}

.quiz-progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e8e8d8;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background-color: #787C20;
    width: 0;
    transition: width 0.4s;
    border-radius: 3px;
}

.quiz-definition {
    background-color: #f9f9f5;
    padding: 20px;
    border-left: 3px solid #787C20;
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.8;
}

.quiz-option {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 8px;
    background-color: #f5f5f0;
    border: 2px solid #d4d4c8;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    text-align: left;
}

.quiz-option:hover {
    border-color: #787C20;
}

.quiz-option.correct {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.quiz-option.wrong {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

#quiz-grade {
    font-size: 18px;
    margin: 15px 0 25px;
    color: #787C20;
    font-weight: 600;
}

/* Forms */
.gamerdic-form .form-group {
    margin-bottom: 20px;
}

.gamerdic-form label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.gamerdic-form input[type="text"],
.gamerdic-form input[type="email"],
.gamerdic-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #d4d4c8;
    border-radius: 5px;
    font-size: 15px;
    font-family: inherit;
}

.gamerdic-form input:focus,
.gamerdic-form textarea:focus {
    outline: none;
    border-color: #787C20;
}

/* ========================================
   CASINO RANKING STYLES (from PBN custom CSS)
   ======================================== */

.gamerdic-casino-ranking {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 15px;
    font-family: 'Abel', 'Dosis', sans-serif;
}

.casino-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 25px 20px 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid #e8e8e8;
    transition: all 0.3s ease;
}

.casino-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(83, 86, 10, 0.15);
    border-color: #53560a;
}

.casino-badge-top {
    position: absolute;
    top: -10px;
    right: 20px;
    z-index: 10;
}

.badge-best {
    background: linear-gradient(135deg, #FFB300, #FFA000);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(255, 179, 0, 0.4);
}

.badge-popular {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(238, 90, 111, 0.4);
}

.casino-rank {
    position: absolute;
    top: 15px;
    left: -12px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #53560a, #6b6e0d);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(83, 86, 10, 0.4);
    border: 3px solid #fff;
}

.rank-number {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.casino-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8e8e8;
}

.casino-logo-wrapper {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
}

.casino-logo-placeholder {
    font-weight: 800;
    color: #53560a;
    font-size: 12px;
    text-align: center;
    line-height: 1.2;
}

.casino-meta {
    flex: 1;
}

.casino-name {
    font-size: 20px;
    font-weight: 800;
    color: #2C1810;
    margin: 0 0 8px 0;
    font-family: 'Titillium Web', sans-serif;
}

.casino-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.stars {
    color: #FFB300;
    font-size: 16px;
    letter-spacing: 2px;
}

.score {
    font-weight: 700;
    color: #FFB300;
    font-size: 14px;
}

.license-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.casino-highlight {
    background: #fffef8;
    border-left: 3px solid #53560a;
    padding: 12px 15px;
    margin-bottom: 15px;
    font-size: 15px;
    color: #333;
    border-radius: 0 4px 4px 0;
}

.casino-bonus {
    text-align: center;
    background: linear-gradient(135deg, rgba(83, 86, 10, 0.05), rgba(107, 110, 13, 0.05));
    border: 2px dashed rgba(83, 86, 10, 0.3);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
}

.bonus-label {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: #666;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 5px;
}

.bonus-amount {
    font-size: 32px;
    font-weight: 900;
    color: #53560a;
    line-height: 1;
    margin: 8px 0;
}

.bonus-subtitle {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.casino-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-item {
    background: #fafafa;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    text-align: center;
}

.detail-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.detail-value {
    font-size: 17px;
    font-weight: 800;
    color: #2C1810;
    display: block;
}

.casino-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.pros-section,
.cons-section {
    background: #fafafa;
    border-radius: 8px;
    padding: 12px;
    border-left: 3px solid #4CAF50;
}

.cons-section {
    border-left-color: #f44336;
}

.section-title {
    font-size: 13px;
    font-weight: 700;
    color: #2C1810;
    margin: 0 0 8px 0;
}

.pros-list,
.cons-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-list li,
.cons-list li {
    padding: 5px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
}

.pros-list li:before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.cons-list li:before {
    content: "\2717";
    position: absolute;
    left: 0;
    color: #f44336;
    font-weight: bold;
}

.casino-payment {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    margin-bottom: 18px;
    background: #fafafa;
    border-radius: 8px;
    flex-wrap: wrap;
}

.payment-label {
    font-weight: 600;
    font-size: 12px;
    color: #666;
}

.payment-icons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.payment-icon {
    background: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    color: #555;
    border: 1px solid #e0e0e0;
    text-transform: uppercase;
}

.casino-cta {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e8e8e8;
}

.casino-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #53560a, #6b6e0d);
    color: #fff !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(83, 86, 10, 0.4);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
    margin-bottom: 10px;
    font-family: 'Titillium Web', sans-serif;
}

.casino-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(83, 86, 10, 0.5);
    background: linear-gradient(135deg, #6b6e0d, #53560a);
    color: #fff !important;
}

.cta-disclaimer {
    margin-top: 8px;
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}

/* Bold fix - .info has font-weight:normal which kills <strong> */
.info strong,
.info b,
strong,
b {
    font-weight: 700 !important;
    color: #1a1a1a;
}

.casino-card[data-rank="1"] {
    border: 3px solid #FFB300;
    background: linear-gradient(to bottom, #fff, #fffef8);
}

.casino-card[data-rank="1"] .casino-rank {
    width: 50px;
    height: 50px;
    box-shadow: 0 6px 20px rgba(255, 179, 0, 0.5);
}

.casino-card[data-rank="2"],
.casino-card[data-rank="3"] {
    border-color: rgba(83, 86, 10, 0.3);
}

@media (max-width: 768px) {
    .gamerdic-casino-ranking {
        padding: 0 10px;
    }
    .casino-card {
        padding: 25px 15px 18px;
    }
    .casino-rank {
        width: 40px;
        height: 40px;
        left: -10px;
    }
    .rank-number {
        font-size: 18px;
    }
    .casino-logo-wrapper {
        width: 70px;
        height: 70px;
    }
    .casino-name {
        font-size: 18px;
    }
    .bonus-amount {
        font-size: 28px;
    }
    .casino-pros-cons {
        grid-template-columns: 1fr;
    }
    .casino-details-grid {
        grid-template-columns: 1fr;
    }
    .casino-btn {
        font-size: 13px;
        padding: 14px 30px;
    }
    .payment-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .casino-rank {
        width: 35px;
        height: 35px;
    }
    .rank-number {
        font-size: 16px;
    }
    .casino-logo-wrapper {
        width: 60px;
        height: 60px;
    }
    .casino-name {
        font-size: 16px;
    }
    .bonus-amount {
        font-size: 24px;
    }
}

/* Casino article wrapper */
.casino-article-wrapper {
    max-width: 940px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Abel', 'Dosis', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.casino-article-wrapper h2 {
    color: #53560a;
    font-size: 26px;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 15px;
}

.casino-article-wrapper h3 {
    color: #6b6e0d;
    font-size: 21px;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 10px;
}

.casino-article-wrapper p {
    margin-bottom: 15px;
}

.casino-article-wrapper strong {
    font-weight: 700;
    color: #1a1a1a;
}

.casino-article-wrapper .intro-text {
    font-size: 19px;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* Hero images and all large images in casino content */
.casino-article-wrapper > img,
.casino-article-wrapper > p > img,
.casino-article-wrapper img.aligncenter,
.casino-article-wrapper img.size-large,
.casino-article-wrapper img.size-full,
.casino-article-wrapper img[loading="lazy"]:not([style*="max-width"]) {
    max-width: 60% !important;
    height: auto !important;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

/* Ensure ALL images in casino pages never overflow */
.entry-content .casino-article-wrapper img {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

/* Ranking: show only top 3, hide rest behind toggle */
.gamerdic-casino-ranking.collapsed .casino-card[data-rank="4"],
.gamerdic-casino-ranking.collapsed .casino-card[data-rank="5"],
.gamerdic-casino-ranking.collapsed .casino-card[data-rank="6"],
.gamerdic-casino-ranking.collapsed .casino-card[data-rank="7"],
.gamerdic-casino-ranking.collapsed .casino-card[data-rank="8"],
.gamerdic-casino-ranking.collapsed .casino-card[data-rank="9"],
.gamerdic-casino-ranking.collapsed .casino-card[data-rank="10"],
.gamerdic-casino-ranking.collapsed .casino-card[data-rank="11"],
.gamerdic-casino-ranking.collapsed .casino-card[data-rank="12"] {
    display: none;
}

.ranking-toggle-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    margin: 5px 0 25px;
    background: linear-gradient(135deg, #53560a, #6b6e0d);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Dosis', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-align: center;
}

.ranking-toggle-btn:hover {
    background: linear-gradient(135deg, #6b6e0d, #787C20);
    transform: translateY(-1px);
}

.ranking-toggle-btn .toggle-arrow {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s;
}

.ranking-toggle-btn.expanded .toggle-arrow {
    transform: rotate(180deg);
}

/* Casino internal links box */
.casino-related-links {
    background: linear-gradient(135deg, #f9f9f5, #f0f0e8);
    border: 1px solid #d4d4c8;
    border-left: 4px solid #53560a;
    border-radius: 0 8px 8px 0;
    padding: 20px 25px;
    margin: 30px 0;
}

.casino-related-links h4 {
    color: #53560a;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.casino-related-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.casino-related-links li {
    margin: 0;
}

.casino-related-links a {
    display: inline-block;
    background: #fff;
    border: 1px solid #d4d4c8;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: #53560a;
    font-weight: 600;
    transition: all 0.2s;
}

.casino-related-links a:hover {
    background: #53560a;
    color: #fff;
    border-color: #53560a;
}
