/*
Theme Name: Shady Corner
Author: Shady Corner Games
Author URI: https://shadycorner.com/
Description: A custom theme for the Shady Corner Games website.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: games, woocommerce, custom-background, post-thumbnails, dark
Text Domain: shadycorner
*/

/* ==========================================================================
   Scrollbar Styling (Restored and Added)
   ========================================================================== */

/* Target the scrollbar itself */
::-webkit-scrollbar {
    width: 10px;
    background-color: #231d33;
}

/* Target the draggable thumb */
::-webkit-scrollbar-thumb {
    background-color: #ea6a97;
    border-radius: 5px;
    border: 2px solid #231d33;
}

/* ==========================================================================
   Preloader Styles
   ========================================================================== */
#sc-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #231d33;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity .7s ease;
    opacity: 1;
    visibility: visible;
}

#sc-preloader.is-fading {
  opacity: 0;
}

.preloader-container {
    position: relative;
    width: 200px; 
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-logo {
    width: 120px;
    height: 120px;
    position: absolute;
    z-index: 2;
}

.preloader-spinner {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 10px solid #70399b;
    border-top-color: #ff38a2;
    animation: spin 1s linear infinite;
    z-index: 1;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Lock scrolling while preloader is up */
html.is-preloading,
body.is-preloading {
  overflow: hidden;
  height: 100%;
  overscroll-behavior: none;
  touch-action: none;
}

/* ==========================================================================
   Core Layout & Global Styles
   ========================================================================== */

/* Global sizing/overflow reset */
*, *::before, *::after { box-sizing: border-box; }

/* Viewport sizing — no hard 100vw */
html {
  height: 100%;
  width: 100%;
  overflow-x: clip; /* newer, like hidden but avoids some scroll jumps */
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #fff;

  /* Let body follow the actual viewport width dynamically */
  width: auto;          /* was 100vw (remove) */
  min-width: 0;         /* was 100vw (remove) */

  height: 100%;
  min-height: 100vh;

  background-color: #000;
  overflow-x: clip;     /* belt & suspenders */
}


/* FIX 2: Correct margin/padding on the main wrapper for consistent spacing */
.sc-whole-wrapper {
    max-width: 1244px;
    /* Center the wrapper horizontally inside the 100vw body */
    margin: 0 auto; 
    /* Eliminate original gap at top */
    margin-top: 25px; 
    /* Ensure the wrapper doesn't block the body background */
    background-color: transparent !important;
    box-shadow: 1px 6px 12px 0px rgba(0, 0, 0, 0.48);
}


/* Full-bleed background from WP's custom-background */
body.custom-background {
  background-size: cover !important;          /* fills width/height */
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  background-position: center top !important;
  min-height: 100vh;
  /* REMOVE width/min-width lines here */
}

a {
    color: #67a0ff;
    text-decoration: none;
}

button {
    transition: 0.2s !important;
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* --- Header --- */
.sc-middle-header {
    padding: 155px 0;
    background-size: cover;
    background-position: center;
    background-image: url('https://shadycorner.com/storage/2025/01/cropped-Twitter_Banner-1.png');
    position: relative;
}

/* --- Navigation --- */
#main-navigation-bar {
    background: linear-gradient(0deg, rgba(51,45,67,1) 0%, rgba(94,88,110,1) 97%);
    box-shadow: 1px 6px 12px 0px #111;
}

.navigation-container{
    display: flex;
    height: 130px;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.main-navigation {
    padding-top: 4px;
    padding-bottom: 10px;
}

.nav-table {
    margin: auto !important;
    border-collapse: collapse;
    width: 100%;
}

.post-thumbnail {
    display: none;
}

.nav-table th {
    border: none;
    padding: 4px;
}

.nav_button_left, 
.nav_button_right {
    font-family: 'navfont', sans-serif;
    font-weight: 100;
    width: 178px;
    font-size: 24px;
    height: 50px;
    background: #ea6a97;
    border: none;
    color: #fff;
    cursor: pointer;
    text-transform: uppercase;
    font-style: italic;
}

.logo {
    display: block; 
    transition: 0.2s ease-out;
}

.nav-table .logo {
    padding-top: 40px;
    max-width: 250px;
}


.logo:hover {
    transform: scale(1.05);
}

.nav_button_left {
    transform: skew(20deg);
}

.nav_button_right {
    transform: skew(-20deg);
}

.nav_button_left > span, .nav_button_right > span {
     display: inline-block;
}
.nav_button_left > span {
     transform: skew(-20deg);
}
.nav_button_right > span {
    transform: skew(20deg);
}

.main-navigation button:hover {
    height: 60px;
}

.main-navigation .small_nav:hover {
  height: 35px;
  background: #5b2883;
}

.small_nav {
    height: 35px;
    font-size: 16px;
    background: #70399b;
}

.small_nav_table {
    position: relative;
    bottom: 45px;
    left: 18px;
}

th.logo-cell {
    width: 260px;
    text-align: center;
    padding-left: 20px;
    padding-right: 15px;
}

.small_width {
    width: 135px;
    position: relative;
}

.brand_asset_l, .brand_asset_r {
    width: 25px;
    margin: auto;
    padding: 1px;
}

.brand_asset_l {
    transform: skew(-20deg);
}

.brand_asset_r {
    transform: skew(20deg);
}

.yt_nav {
    position: absolute;
    left: -283px;
    bottom: -23px;
    width: 25%;
    transition: 0.2s;
    animation: yt-breathe 2s ease-in-out infinite;
    z-index: 2;
}

.yt_nav:hover {
    animation: yt-breathe-hover 1s ease-in-out infinite;
}

        @keyframes yt-breathe-hover {
            0% { transform: scale(1); }
            50% { transform: rotate(3deg) scale(1.05); }
            100% { transform: scale(1); }
        }



/* --- Main Content --- */
#content {
  background-image: url(https://shadycorner.com/storage/2023/01/content-bgterans.png);
  background-position: bottom;
  background-size: auto;
  background-repeat: no-repeat;
  background-color: #231d33;
  padding: 20px;
}

/* --- Footer --- */
.site-footer {
    background: transparent;
}

.site-info {
    text-align: center;
    padding: 20px 0;
    background: #000;
    font-size: 0.9em;
}

.below-footer-menu {
    max-width: 1244px;
    width: 100%;
    display: flex;
    margin: auto;
    justify-content: space-around;
    padding: 20px 0;
    flex-wrap: wrap;
}

.below-footer-menu a {
    color: inherit;
    padding: 5px 10px;
}

/* ==========================================================================
   Shady Corner Custom Checkout Page Styles
   ========================================================================== */

/* --- Main Layout & Structure --- */
.woocommerce-checkout .woocommerce {
    color: #c7d5e0;
}

.woocommerce-checkout .col2-set,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    background: rgba(35, 29, 51, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.woocommerce .col2-set, .woocommerce-page .col2-set {
    width: auto;
}

.woocommerce-checkout #customer_details {
    margin-bottom: 2em;
}

.woocommerce-checkout h3 {
    color: #fff;
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

/* --- Form Fields & Labels --- */
.woocommerce-checkout .form-row label {
    color: #fff;
    margin-bottom: 8px;
}

.woocommerce-checkout .form-row .input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea,
.woocommerce form .form-row .input-text, 
.woocommerce form .form-row select {
    background: rgba(15, 12, 25, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(112, 57, 155, 0.8);
    color: white;
    padding: 12px;
    border-radius: 5px;
    width: 100%;
    box-shadow: none;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.woocommerce-checkout .form-row .input-text:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
    border-color: #ff38a2;
    background: rgba(25, 22, 35, 0.8);
}

/* Style select2 dropdowns */
.woocommerce-checkout .select2-container--default .select2-selection--single {
    background: rgba(15, 12, 25, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(112, 57, 155, 0.8);
    border-radius: 5px;
    height: 48px;
}
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: white;
    line-height: 14px;
}
.select2-dropdown {
     background-color: #231d33;
     border: 1px solid #70399b;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #70399b;
}

/* --- Order Review Table --- */
.woocommerce-checkout table.shop_table {
    border: none;
    width: 100%;
    background: transparent;
}

.woocommerce-checkout table.shop_table thead th,
.woocommerce-checkout table.shop_table tbody td,
.woocommerce-checkout table.shop_table tfoot th,
.woocommerce-checkout table.shop_table tfoot td {
    border: none;
    padding: 15px 0;
    color: #c7d5e0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.woocommerce-checkout table.shop_table thead th {
    color: #fff;
    font-weight: bold;
}

.woocommerce-checkout table.shop_table tr.cart-subtotal,
.woocommerce-checkout table.shop_table tr.order-total {
    font-weight: bold;
}

.woocommerce-checkout table.shop_table tr.order-total th,
.woocommerce-checkout table.shop_table tr.order-total td .amount {
    color: #fff;
    font-size: 1.2em;
}

/* --- Payment Methods --- */
.woocommerce-checkout #payment {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
}

.woocommerce-checkout #payment ul.payment_methods {
    border: none;
    padding: 0;
}

.woocommerce-checkout #payment li.payment_method {
    background: transparent;
    color: #c7d5e0;
}

.woocommerce-checkout #payment div.payment_box {
    background: rgba(35, 29, 51, 0.8);
    color: #c7d5e0;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
}

.woocommerce-checkout #payment div.payment_box::before {
    border-bottom-color: #231d33;
}

/* --- Place Order Button --- */
.woocommerce-checkout #place_order {
    background: linear-gradient( to bottom, #70399b 5%, #512672 95%) !important;
    color: white !important;
    padding: 15px 20px !important;
    border-radius: 5px !important;
    font-weight: bold !important;
    border: none !important;
    width: 100%;
    font-size: 1.2em;
    transition: transform 0.2s ease, background 0.2s ease !important;
}

.woocommerce-checkout #place_order:hover {
    background: linear-gradient( to bottom, #8343b8 5%, #612f8a 95%) !important;
    transform: scale(1.02);
}

/* --- Alerts & Notices --- */
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-message {
    background: rgba(35, 29, 51, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    color: #fff;
}
.woocommerce-checkout .woocommerce-info::before {
    color: #ff38a2;
    display: none;
}

/* ==========================================================================
   Global Select Dropdown Styles
   ========================================================================== */

/* --- Base Styling for All Select Elements --- */
select,
.woocommerce select {
    -webkit-appearance: none; /* Removes default Safari styling */
    -moz-appearance: none;    /* Removes default Firefox styling */
    appearance: none;         /* Removes default styling */

    /* Custom Arrow SVG */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px 16px;

    /* Glassmorphic/Theme Styling */
    background-color: rgba(15, 12, 25, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(112, 57, 155, 0.8); /* Theme purple */
    color: white;
    padding: 12px 40px 12px 15px; /* Add padding to right to not overlap arrow */
    border-radius: 5px;
    width: 100%;
    box-shadow: none;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

/* --- Focus State --- */
select:focus,
.woocommerce select:focus {
    border-color: #ff38a2; /* Theme pink */
    background-color: rgba(25, 22, 35, 0.8);
}

/* --- Styling for WooCommerce Select2 Dropdowns --- */
.select2-container--default .select2-selection--single {
    background: rgba(15, 12, 25, 0.7) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(112, 57, 155, 0.8) !important;
    border-radius: 5px !important;
    height: 48px !important;
    padding: 8px 12px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: white !important;
    line-height: 14px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #fff transparent transparent transparent !important;
}

.select2-dropdown {
     background-color: #231d33 !important;
     border: 1px solid #70399b !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #70399b !important;
}

.agl_main {
    background: #1d1631b5 !important;
    border-radius: 8px !important;
    border: 1px solid #382865 !important;
    backdrop-filter: blur(5px) !important;
}
/* ==========================================================================
   PRESS KIT ARCHIVE STYLES (NEW)
   ========================================================================== */
.sc-press-kit-grid {
    display: grid;
    /* Responsive grid: minimum card width of 250px, automatically adjusts columns */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 30px;
    padding: 40px 0;
}

.sc-press-kit-card {
    display: block;
    text-decoration: none;
    background: rgba(35, 29, 51, 0.8); /* Dark background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    overflow: hidden; /* Clips the image edges */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    padding: 15px; /* Padding inside the card for text */
}

.sc-press-kit-card:hover {
    transform: translateY(-5px); /* Lift effect */
    box-shadow: 0 12px 20px 0 rgba(0, 0, 0, 0.6), 0 0 10px #ff38a2; /* Highlight effect */
}

.sc-card-image-wrapper {
    /* Set aspect ratio for the image container to ensure consistency */
    aspect-ratio: 1 / 1.5; /* Approx. 2:3 ratio for portrait game art */
    width: 100%;
    margin-bottom: 10px;
    border-radius: 8px; /* Inner rounding for the image wrapper */
    overflow: hidden;
}

.sc-card-image-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area without stretching */
    transition: transform 0.3s ease;
}

.sc-press-kit-card:hover .sc-card-image-wrapper img {
    transform: scale(1.05);
}

.sc-card-title {
    color: #fff; 
    font-size: 1.1em;
    font-weight: 700;
    margin: 5px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* ==========================================================================
   Media Queries (Responsive)
   ========================================================================== */
@media only screen and (max-width: 768px) {
    .sc-whole-wrapper {
        margin: 0;
        min-width: 100%;
        box-shadow: none;
    }
    
    .yt_nav {
        display: none;
    }
    
    .sc-middle-header {
        height: 135px !important;
        padding: 0 !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
    }
    
    .sc-middle-header .logo {
        display: block;
        position: absolute;
        right: 10px;
        bottom: 10px;
        width: 120px;
        height: auto;
        padding: 0;
        top: auto;
        left: auto;
    }

    .nav-table .logo-cell {
        display: none;
    }

    .navigation-container {
        height: auto;
    }
    
    .nav-table {
        width: 100%;
    }

    .nav_button_left,
    .nav_button_right {
        transform: none;
        width: 20vw;
        font-size: 3vw;
        min-width: 70px;
    }

    .nav_button_left > span, .nav_button_right > span {
        transform: none;
    }
    
    .small_nav_table {
        position: static;
        left: 0;
        bottom: 0;
    }
    .small_nav_table th {
        width: 25%;
    }

     .small_width, .small_nav {
        position: static !important;
        width: 100%;
     }

     .brand_asset_l, .brand_asset_r {
        transform: none;
    }
}

/* WordPress Core CSS */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #eee;
    clip: auto !important;
    clip-path: none;
    color: #4a4a4a;
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
