/*
Theme Name: Topshot WC 2026
Theme URI: https://topshot.fi
Author: Top Shot Oy
Author URI: https://topshot.fi
Description: Moderni lohkopohjainen WooCommerce-teema (Full Site Editing)
Version: 1.0.1
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: topshot-wcgp-2026-2
*/

/* --------------------------------------------------------------
   HEADER — Glassmorphism + Sticky
-------------------------------------------------------------- */

.wp-block-template-part.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(34,34,34,0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

body,
.wp-site-blocks {
    overflow: visible !important;
}

/* --------------------------------------------------------------
   NAVIGATION
-------------------------------------------------------------- */

.wp-block-navigation a {
    color: #f5f5f5;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.wp-block-navigation a:hover {
    color: #e91e63;
    border-bottom-color: #e91e63;
}

.wp-block-navigation__submenu-container {
    background: #1a1a1a;
    border: 1px solid #1e1e1e;
    border-radius: 6px;
}

.wp-block-navigation__submenu-container a:hover {
    background: #1e1e1e;
    color: #e91e63;
}

/* --------------------------------------------------------------
   HERO SECTION
-------------------------------------------------------------- */

.darkstudio-hero {
    background-image: url('./assets/img/harmaakohina.gif');
    background-size: 250px 250px;
    background-repeat: repeat;
    background-position: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.darkstudio-hero h1 {
    text-shadow: 0 0 20px rgba(0,0,0,0.6);
}

/* CTA teräväkulmainen */
.wp-block-button__link,
.wp-element-button {
    border-radius: 0 !important;
}

.wp-block-button__link:hover {
    background: #ff2a7a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233,30,99,0.3);
}

/* --------------------------------------------------------------
   3 BANNERIA
-------------------------------------------------------------- */

.frontpage-banners {
    background-image: url('./assets/img/mustakohina2.png');
    background-size: 250px 250px;
    background-repeat: repeat;
    background-position: center;
    padding: 40px 0;
}

.frontpage-banners [class*="wp-container"] {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    display: flex !important;
    gap: 20px !important;
}

.frontpage-banners .wp-block-columns {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.frontpage-banners .wp-block-column {
    flex: 1 1 0 !important;
    max-width: 100% !important;
}

/* Image-lohkopohjaiset bannerit */
.promo-cover {
    position: relative;
    border: 2px solid #e91e63 !important;
    border-radius: 0 !important;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 260px;
}

.promo-cover:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.4);
}

.promo-cover .promo-img {
    margin: 0 !important;
}

.promo-cover .promo-img img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.promo-cover .promo-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    margin: 0;
    color: #fff !important;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
    pointer-events: none;
    font-size: 22px;
}

.promo-cover .promo-img a {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: block;
}

/* Vanha promo-box — säilytetään taaksepäin yhteensopivuuden vuoksi */
.promo-box {
    position: relative;
    border: 2px solid #e91e63 !important;
    border-radius: 0px;
    box-sizing: border-box !important;
    overflow: hidden;
    background-color: transparent !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 260px;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-box:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.4);
}

.promo-box .promo-link {
    position: absolute;
    inset: 0;
    z-index: 10;
}

/* Saavutettavuus: näkymätön linkkiteksti ruudunlukijoille */
.promo-box .promo-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

.promo-box .promo-content {
    position: relative;
    z-index: 20;
}

.promo-box h3 {
    margin: 0;
    color: #fff;
    text-shadow: 0 0 10px rgba(0,0,0,0.6);
}

/* --------------------------------------------------------------
   PRODUCT CARDS
-------------------------------------------------------------- */

.wc-block-grid__product,
.wp-block-woocommerce-product-template,
.wc-product-card {
    background: #1a1a1a;
    border: 1px solid #1e1e1e;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.25s ease;
}

.wc-block-grid__product:hover,
.wp-block-woocommerce-product-template:hover,
.wc-product-card:hover {
    transform: scale(1.04);
    border-color: #e91e63;
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.15);
}

.wc-product-image img {
    transition: transform 0.3s ease;
    border-radius: 6px;
}

.wc-product-card:hover .wc-product-image img {
    transform: scale(1.05);
}

.wc-product-title {
    font-family: Afacad, sans-serif;
    font-size: 20px;
    color: #f5f5f5;
}

.wc-product-price {
    font-family: Afacad, sans-serif;
    font-size: 22px;
    color: #e91e63;
    font-weight: 600;
}

/* --------------------------------------------------------------
   FOOTER
-------------------------------------------------------------- */

.darkstudio-footer {
    background: #0d0d0d !important;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.darkstudio-footer a {
    color: #f5f5f5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.darkstudio-footer a:hover {
    color: #e91e63;
}

/* --------------------------------------------------------------
   KOKO SIVUN HARMAAKOHINA
-------------------------------------------------------------- */

body {
    background-image: url('./assets/img/harmaakohina.gif');
    background-size: 250px 250px;
    background-repeat: repeat;
    background-position: center;
}
