/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* ============================================================
   SISTERSITES HUB - PREMIUM CASINO ROW STYLE (2026)
   ============================================================ */

/* 1. KASINOLAATIKON YLEISTYYLI - KIRKAS JA TERÄVÄ */
.casino-row {
    background: #1a1a1a;
    border: 2px solid #fcb900 !important; 
    border-radius: 24px !important;
    margin-bottom: 15px !important; 
    overflow: hidden;
    padding: 20px !important;
    transition: border-color 0.3s ease, background 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Kehyksen korostus kun hiiri on kortin päällä */
.casino-row:hover {
    border-color: #ffffff !important; 
    background: #222222; 
}

/* 2. TEKSTIEN TYYLITTELY */
.casino-row h3 {
    color: #ffffff !important;
    font-weight: 800 !important;
    margin-top: 0 !important;
    text-transform: none;
    letter-spacing: 0.5px;
}

/* 3. LISTAN JA VIHREIDEN TÄPPIEN UUDISTUS */
.casino-row ul {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 15px 0 !important;
}

.casino-row li {
    position: relative;
    padding-left: 35px !important;
    margin-bottom: 12px !important;
    font-weight: 500;
    color: #ffffff !important; 
    font-size: 0.95rem;
    list-style: none !important;
}

/* VIHREÄ 3D-TÄPPÄ (EMERALD STYLE) */
.casino-row li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    /* Gradientti vihreän sävyissä */
    background: radial-gradient(circle at 30% 30%, #2ecc71 0%, #27ae60 100%);
    color: #ffffff; /* Valkoinen merkki erottuu vihreästä paremmin */
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    /* 3D-efekti varjoilla */
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.4), 
        inset 0 -2px 0 rgba(0,0,0,0.2), 
        inset 0 2px 0 rgba(255,255,255,0.3);
    border: 1px solid rgba(0,0,0,0.1);
}

/* 4. PLAY NOW -NAPPI (LIIKKUVA JA HEHKUVA) */
.casino-row .wp-block-button__link {
    background: linear-gradient(180deg, #fcb900 0%, #ff9900 100%) !important;
    color: #000 !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    box-shadow: 0px 4px 0px #b36b00 !important;
    border: none !important;
    border-radius: 12px !important;
    display: inline-block;
}

.casino-row .wp-block-button__link:hover {
    transform: translateY(-4px);
    background: linear-gradient(180deg, #ffcc33 0%, #ffaa00 100%) !important;
    box-shadow: 0px 6px 0px #b36b00, 0px 8px 25px rgba(252, 185, 0, 0.6) !important;
}

.casino-row .wp-block-button__link:active {
    transform: translateY(2px) !important;
    box-shadow: 0px 2px 0px #b36b00 !important;
}

/* 5. LOGON SELKEYS JA KESKITYS */
.casino-row .wp-block-image img {
    max-height: 80px;
    width: auto;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
}

/* 6. MOBIILIOPTIMOINTI (PUHELIMET JA TABLETIT) */
@media (max-width: 781px) {
    .casino-row .wp-block-column:first-child {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .casino-row .wp-block-image {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0;
        display: flex;
        justify-content: center;
    }

    .casino-row .wp-block-image img {
        max-height: 65px !important;
        width: auto !important;
        display: block;
        margin: 10px 0 !important;
    }

    .casino-row.wp-block-columns {
        gap: 0 !important; 
    }

    .casino-row {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }
}

.home .ct-breadcrumbs {
    display: none !important;
}

/* ============================================================
   5. PIKALINKIT (Desktop & Mobiili optimointi)
   ============================================================ */
.scroll-x {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 15px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch; /* Sulava mobiilirullaus */
    
    /* Firefox: Hillitty kulta */
    scrollbar-width: thin;
    scrollbar-color: #bfa34d rgba(255, 255, 255, 0.05);
}

/* Chrome, Safari, Edge */
.scroll-x::-webkit-scrollbar {
    height: 4px; /* Hieman paksumpi desktopilla, jotta erottuu */
}

.scroll-x::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.scroll-x::-webkit-scrollbar-thumb {
    background: #bfa34d; /* Hillitty kullan sävy */
    border-radius: 10px;
}

/* Erityissääntö mobiililaitteille */
@media (max-width: 768px) {
    .scroll-x::-webkit-scrollbar {
        height: 3px; /* Mobiilissa ohuempi */
    }
    .scroll-x::-webkit-scrollbar-thumb {
        background: rgba(191, 163, 77, 0.5); /* Mobiilissa läpinäkyvämpi */
    }
}

.scroll-x a, .scroll-x .button { 
    flex: 0 0 auto; 
    width: 140px; 
}

/* Piilottaa linkin, joka osoittaa nykyiselle sivulle sitemap-listassa */
.wp-block-pages-list__item__link[aria-current="page"] {
    display: none !important;
}

/* Jos listan pallo (bullet point) jää näkyviin, käytä tätä: */
.wp-block-pages-list__item:has(> [aria-current="page"]) {
    display: none !important;
}

/* Poistetaan breadcrumbs ja jakonapit sivulta 603 */
.page-id-603 [class*="breadcrumbs"],
.page-id-603 .ct-share-box,
.page-id-603 .entry-meta,
.page-id-603 .author-box {
    display: none !important;
}

/* BADGE-KOODI SISTERSITESHUB.COM - LOPULLINEN KORJAUS RAOLLE */

.casino-row {
    position: relative !important;
    /* Poistetaan mahdollinen tyhjä tila sarakkeiden päältä */
}

.badge-row-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 100 !important;
    width: auto;
    height: auto;
    line-height: 0 !important;
    /* Varmistetaan että kontti on aivan reunassa */
}

.custom-badge {
    display: block !important; /* Muutettu blockiksi, jotta täyttää kontin yläreunan */
    float: left; /* Pakottaa badgen vasemmalle ilman rivivälejä */
    color: #ffffff !important;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
    background-color: var(--primary-blue, #007bff);
    border-top-left-radius: 14px; 
    border-bottom-right-radius: 15px;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
    line-height: 1.2 !important;
    margin: 0 !important;
}

/* Mobiilikorjaus: sijoitus pysyy kulmassa ja poistetaan raot */
@media (max-width: 781px) {
    /* Pakotetaan casino-row nollaamaan mahdolliset Gutenberg-välit */
    .casino-row {
        padding-top: 0 !important; 
    }
    
    /* Lisätään sarakkeelle tilaa, jotta badge ei peitä logoa, 
       mutta pidetään badge itse kiinni yläreunassa */
    .casino-row > .wp-block-column:first-of-type {
        margin-top: 40px !important; 
    }

    .badge-row-container {
        top: 0 !important;
        left: 0 !important;
        margin: 0 !important;
    }
    
    .custom-badge {
        font-size: 12px;
        padding: 4px 10px;
        border-top-left-radius: 15px;
    }
}

/* Poistetaan breadcrumbs ja tekijätiedot sivulta 663 */
.page-id-663 [class*="breadcrumbs"],
.page-id-663 .entry-meta,
.page-id-663 .author-box {
    display: none !important;
}

/* Estää tekstin valitsemisen koko sivustolla */
body {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none;      /* IE 10 ja uudemmat */
  user-select: none;         /* Vakio-ominaisuus (Chrome, Firefox, Edge) */
}