/* ==========================================
   CRYPTO CASINO GLOBAL STYLES
   Applicazione globale del theme dark crypto
   ========================================== */

/* CSS VARIABLES GLOBALI CRYPTO THEME */
:root {
    --crypto-primary: #f7931a;
    --crypto-secondary: #4a90e2;
    --crypto-accent: #50c878;
    --crypto-dark: #0a0a0a;
    --crypto-darker: #000000;
    --crypto-card: #1a1a1a;
    --crypto-border: #333;
    --crypto-text: #ffffff;
    --crypto-text-muted: #cccccc;
    --crypto-gradient: linear-gradient(135deg, #f7931a 0%, #4a90e2 100%);
    --crypto-box-shadow: 0 10px 30px rgba(247, 147, 26, 0.1);
}

/* BODY GLOBALE - APPLICA A TUTTO IL SITO */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    background: var(--crypto-dark) !important;
    color: var(--crypto-text) !important;
    line-height: 1.6;
    min-height: 100vh
    overflow-x: hidden;
}

/* OVERRIDE COMPLETO WORDPRESS DEFAULTS */
.site, #page, #content, .site-content {
    background: var(--crypto-dark) !important;
    color: var(--crypto-text) !important;
}

a.ai-link {
	color: #8db1ea;
	text-decoration: none;
}

a.ai-link:hover, a:focus, a:active {
	color: #8db1ea;
	border-bottom: 1px solid #ffcc00;
}


/* NASCONDERE HEADER/FOOTER WORDPRESS DI DEFAULT */
.site-header, 
.main-navigation,
.site-footer,
#masthead,
#colophon,
.generate-navigation,
.main-navigation .main-nav,
.site-branding {
    display: none !important;
}

/* HEADER CRYPTO PERSONALIZZATO GLOBALE */
.crypto-header {
    background: linear-gradient(135deg, rgba(0,0,0,0.95) 0%, rgba(26,26,26,0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--crypto-primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--crypto-box-shadow);
}

.crypto-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
}

.crypto-logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--crypto-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.crypto-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.crypto-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex: 1;
}

.crypto-nav a {
    color: var(--crypto-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    white-space: nowrap;
}

.crypto-nav a:hover,
.crypto-nav a.active {
    color: var(--crypto-primary);
    background: rgba(247, 147, 26, 0.1);
    transform: translateY(-2px);
}

/* MAIN CONTENT AREA */
.crypto-main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    border-radius: 0 0 15px 15px;
}

.tax-casino_category .other-casinos-directory {
    margin-bottom: 0!important;
}

.tax-casino_category .crypto-pagination .nav-links {
    margin: 0 0 2rem!important
}

/* FOOTER CRYPTO PERSONALIZZATO GLOBALE */
.crypto-footer {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: var(--crypto-text);
    padding: 3rem 0 1rem;
    border-top: 2px solid var(--crypto-primary);
    margin-top: auto;
}

.crypto-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--crypto-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--crypto-text-muted);
    margin-bottom: 0;
    font-size: 1rem;
}

.footer-section a {
    color: var(--crypto-text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
    font-weight: 500;
}

.footer-section a:hover {
    color: #fff;
}

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

.footer-bottom a,
.footer-bottom a:visited {
    color: #1e73be;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: #1e73be;
    text-decoration: underline;
}

/* Footer Social Links - Modern Design */
.footer-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.9rem;
    border-radius: 10px;
    color: #e8e8e8 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-social-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Hover Effects with Brand Colors */
.footer-social-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none !important;
}

.footer-social-btn.x-twitter:hover {
    color: #ffffff !important;
    border-color: #1da1f2;
    box-shadow: 0 5px 15px rgba(29, 161, 242, 0.2);
}

.footer-social-btn.facebook:hover {
    color: #1877f2 !important;
    border-color: #1877f2;
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.2);
}

.footer-social-btn.linkedin:hover {
    color: #0a66c2 !important;
    border-color: #0a66c2;
    box-shadow: 0 5px 15px rgba(10, 102, 194, 0.2);
}

.footer-social-btn.pinterest:hover {
    color: #e60023 !important;
    border-color: #e60023;
    box-shadow: 0 5px 15px rgba(230, 0, 35, 0.2);
}

.footer-social-btn:hover svg {
    transform: scale(1.1);
}

/* STYLING PER SINGLE POST (RECENSIONI) */
.single-post .crypto-main,
.single .crypto-main {
    padding: 2rem 0;
}

.post-content,
.entry-content {
    background: var(--crypto-card);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--crypto-border);
    box-shadow: var(--crypto-box-shadow);
    margin-bottom: 2rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.post-title,
.entry-title {
    color: var(--crypto-text);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--crypto-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* BUTTONS E LINKS GLOBALI */
button:not(.crypto-scroll-top),
.btn,
.wp-block-button__link,
input[type="submit"] {
    background: var(--crypto-gradient);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

button:hover,
.btn:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(247, 147, 26, 0.3);
    filter: brightness(1.1);
}

/* 404 */
.error404 button.search-submit{
margin-top: 0.8rem!important
}

/* search-nav */
.search-results nav.paging-navigation{
background-color:#0a0a0a;
padding:0;
}

.search-results .nav-links > :first-child {
padding-left: 15px;
}

.search-results .paging-navigation .nav-links .current {
	line-height: 3;
}

.search-results .paging-navigation .nav-links > * {
	padding: 10px 17px;
}

.search-results .nav-links {
	gap: 0.7rem;
	align-items: center;
	margin:0;
}

/* FORMS GLOBALI */
input,
textarea,
select {
    background: var(--crypto-card);
    border: 1px solid var(--crypto-border);
    color: var(--crypto-text);
    padding: 0.8rem;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--crypto-primary);
    box-shadow: 0 0 0 2px rgba(247, 147, 26, 0.2);
}

/* OVERRIDE SPECIFICI PER GENERATEPRESS */
.inside-article,
.entry-header,
.entry-summary,
.page-header {
    background: transparent !important;
    color: var(--crypto-text) !important;
}

/* HIDE GENERATEPRESS ELEMENTS */
.generate-back-to-top,
.posted-on,
.byline {
    display: none !important;
}

/* CRYPTO CARDS PER CONTENUTI */
.crypto-card {
    background: var(--crypto-card);
    border: 1px solid var(--crypto-border);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--crypto-box-shadow);
    transition: all 0.3s ease;
}

.crypto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(247, 147, 26, 0.15);
}

/* ==========================================
   OTHER CRYPTO CASINOS - FIXED LAYOUT
   ========================================== */

.other-casinos-directory {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.detail-card {
    background: rgba(46, 155, 248, 0.09);
    border-radius: 15px;
    border: 1px solid var(--dark-border);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    margin: 0 0 30px;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.position-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-bottom-right-radius: 15px;
    font-weight: bold;
    font-size: 1.1rem;
    z-index: 2;
    min-width: 50px;
    text-align: center;
}

/* IMMAGINE PRINCIPALE - DIMENSIONI CONSISTENTI */
.detail-card .main-image {
    width: 100%;
    height: 250px; /* Altezza fissa per consistenza */
    overflow: hidden;
    position: relative;
}

.detail-card .main-image img {
    width: 100%;
    height: 100%;
    object-position: center;
    transition: transform 0.3s ease;
}

.detail-card:hover .main-image img {
    transform: scale(1.05);
}

/* HEADER CON LOGO E INFO */
.detail-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(0, 212, 255, 0.03);
    border-top: 1px solid var(--dark-border);
    border-bottom: 1px solid var(--dark-border);
    margin-bottom: 25px
}

.logo-large {
    width: 80px; /* Dimensione fissa per tutti i loghi */
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--dark-bg);
    border: 2px solid var(--dark-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.logo-large img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mantiene proporzioni senza tagliare */
    object-position: center;
}

.detail-info {
    flex: 1;
}

.detail-info h3 {
    margin: 0 0 0.8rem 0;
    font-size: 1.6rem;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.rating-box {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    padding: 0 0 30px;
}

.rating-score {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.rating-max {
    color: var(--text-secondary);
    font-size: 1rem;
}

.rating-stars {
    color: var(--warning-color);
    margin-left: 0.5rem;
    flex-shrink: 0;
}

/* INTRODUZIONE */
.intro-section {
    padding: 0 2rem 1.5rem;
}

.intro-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.intro-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* PROS E CONS */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 0 2rem 2rem;
}

.pros, .cons {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pros h4 {
    color: var(--success-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.cons h4 {
    color: #ff6b6b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

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

.pros li, .cons li {
    padding: 0.4rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    padding-left: 1.2rem;
}

.pros li:before {
    content: '✓';
    color: var(--success-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.cons li:before {
    content: '✕';
    color: #ff6b6b;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* AZIONI */
.detail-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 0 2rem 2rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.detail-actions .crypto-btn {
    flex: 1;
    max-width: 200px;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
}

.landing-disclaimer-universal .disclaimer-content p {
    margin-bottom: 0 !important;
    line-height: 1.6;
}

.landing-disclaimer-universal .disclaimer-content p + p {
    margin-top: 0.4rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .crypto-header .container {
        padding: 0 1rem;
        align-items: center;
        gap: 0.8rem;
    }
    
    .crypto-nav {
        gap: 0.5rem 1rem;
        justify-content: center;
        font-size: 0.9rem;
    }
    .crypto-nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .post-title,
    .entry-title {
        font-size: 2rem;
    }
    
    .post-content,
    .entry-content {
        padding: 1.5rem;
    }
    .directory-item { flex-direction: column; text-align: center; gap: 1rem; }
    .rank-number { margin-bottom: 0; }
    .brief-details { justify-content: center; }

    .detail-card .main-image {
        height: 200px;
    }
    
    .detail-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .logo-large {
        margin-bottom: 1rem;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem 1.5rem;
    }
    
    .intro-section {
        padding: 0 1rem 1rem;
    }
    
    .detail-actions {
        flex-direction: column;
        padding: 0 1rem 1.5rem;
        padding-top: 1.5rem;
    }
    
    .detail-actions .crypto-btn {
        max-width: none;
    }

    .footer-social-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .footer-social-btn {
        padding: 0.3rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .crypto-nav {
        gap: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }
    .crypto-nav a {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .crypto-nav a span,
    .crypto-nav a .emoji {
        font-size: 0.9rem;
    }

    .detail-card .main-image {
        height: 150px;
    }
    
    .detail-info h3 {
        font-size: 1.3rem;
    }
    
    .rating-score {
        font-size: 1.5rem;
    }

    .post-content,
    .entry-content {
        padding: 1rem;
    }
}

/* PAGINATION */
.list-pagination, .detail-pagination, 
.nav-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.list-pagination a,
.nav-links a,
.page-btn {
    background: var(--crypto-card);
    color: var(--crypto-text);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid var(--crypto-border);
    transition: all 0.3s ease;
}

 .page-btn.active { background: var(--primary-color); color: white; }

.list-pagination a:hover,
.nav-links a:hover,
.page-btn:hover,
.page-btn.current {
    background: var(--crypto-primary);
    color: white;
    transform: translateY(-2px);
}

/* SIDEBAR STYLING */
.sidebar,
.widget-area {
    background: var(--crypto-card);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--crypto-border);
}

.widget {
    margin-bottom: 2rem;
    color: var(--crypto-text);
}

.widget-title {
    color: var(--crypto-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* BREADCRUMBS */
.breadcrumbs {
    background: var(--crypto-card);
    padding: 1rem 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid var(--crypto-border);
}

.breadcrumbs a {
    color: var(--crypto-primary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.error404 .grid-container {
margin-top:50px;
}

.page-id-753 .entry-title, .page-id-755 
.entry-title, .page-id-760 .entry-title, 
.error404 .entry-title {
margin-bottom:15px!important;
}