/*
Theme Name: Kuskus 2.0
Theme URI: https://kuskus-tattoo.pl
Author: Nordmind
Author URI: https://nordmind.pl
Description: Minimalistyczny motyw dla studia tatuażu KusKus
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kuskus
*/

/* ============================================
   CSS VARIABLES
============================================ */
:root {
    --color-bg: #F5C6C6;
    --color-accent: #d9a2a7;
    --color-border: #C19196;
    --color-white: #ffffff;
    --color-text: #d9a2a7;
    --font-heading: 'Quicksand', sans-serif;
    --font-accent: 'Bebas Neue', sans-serif;
    --font-body: 'Martel', serif;
    --border-radius: 0px;
    --frame-width: 15px;
}

/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.8;
    min-height: 100vh;
}

/* ============================================
   TYPOGRAPHY
============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 34px; }
h2 { font-size: 30px; }
h3 { font-size: 26px; }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p {
    margin-bottom: 1em;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-border);
}

/* ============================================
   FRAME BORDER
============================================ */
.frame-border {
    position: fixed;
    background: var(--color-bg);
    z-index: 9998;
}

.frame-top {
    top: 0;
    left: 0;
    right: 0;
    height: var(--frame-width);
}

.frame-bottom {
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--frame-width);
}

.frame-left {
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--frame-width);
}

.frame-right {
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--frame-width);
}

/* ============================================
   HEADER
============================================ */
.site-header {
    position: fixed;
    top: var(--frame-width);
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo img {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.site-tagline {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: var(--color-accent);
    line-height: 1;
    display: flex;
    align-items: center;
    margin-top: -14px;
}

.menu-toggle {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: var(--color-accent);
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    transition: opacity 0.3s ease;
    margin-top: -14px;
}

.menu-toggle:hover {
    opacity: 0.7;
}

/* ============================================
   FULLSCREEN MENU
============================================ */
.fullscreen-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 33.33%;
    height: 100vh;
    background-color: var(--color-bg);
    border: var(--frame-width) solid var(--color-border);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 1000ms cubic-bezier(.19, 1, .22, 1);
    display: flex;
    flex-direction: column;
    padding: 80px 40px 40px;
    overflow-y: auto;
}

.fullscreen-menu.active {
    transform: translateX(0);
}

.menu-close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: var(--color-border);
    background: none;
    border: none;
    cursor: pointer;
}

.fullscreen-menu .menu-item {
    list-style: none;
    margin-bottom: 20px;
}

.fullscreen-menu .menu-item a {
    font-family: 'Quicksand', sans-serif;
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-border);
    display: block;
    transition: transform 0.3s ease;
}

.fullscreen-menu .menu-item a:hover {
    transform: translateX(10px);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    transition: opacity 1000ms cubic-bezier(.19, 1, .22, 1), visibility 0s 1000ms;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 1000ms cubic-bezier(.19, 1, .22, 1), visibility 0s 0s;
}

/* ============================================
   HERO SECTION
============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    position: relative;
}

.hero-image {
    max-width: 60%;
    max-height: 70vh;
    object-fit: contain;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-family: var(--font-accent);
    font-size: 72px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
}

/* ============================================
   PORTFOLIO GRID
============================================ */
.portfolio-section {
    padding: 60px 40px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-item {
    text-align: center;
}

.portfolio-item > a {
    display: block;
    overflow: hidden;
    transition: all 1000ms cubic-bezier(.19, 1, .22, 1) 0ms;
}

.portfolio-item:hover > a {
    transform: scale(0.95);
}

.portfolio-item-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    margin-bottom: 15px;
    transform: scale(1.15);
}

.portfolio-item-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 36px;
    text-transform: uppercase;
    color: #000000;
    margin-bottom: 8px;
    white-space: nowrap;
}

.portfolio-item-title a {
    color: #000000;
}

.portfolio-item-subtitle {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 20px;
    text-transform: uppercase;
    color: #000000;
    letter-spacing: 2px;
}

/* ============================================
   ARTYSCI (ARTISTS) GRID
============================================ */
.artists-section {
    padding: 60px 40px;
}

.artists-section-title {
    font-family: var(--font-accent);
    font-size: 48px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-accent);
}

.artists-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.artist-card {
    background: rgba(255, 255, 255, 0.3);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.artist-card:hover {
    transform: translateY(-5px);
}

.artist-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    margin-bottom: 15px;
}

.artist-name1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 5px;
}

.artist-name2 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
    color: var(--color-accent);
}

/* ============================================
   SINGLE ARTIST PAGE
============================================ */
.single-artist {
    padding: 120px 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.artist-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.artist-featured-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.artist-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.artist-content {
    margin-top: 40px;
    font-size: 16px;
    line-height: 1.8;
}

/* Artist Gallery */
.artist-gallery {
    margin-top: 60px;
}

.artist-gallery-title {
    font-family: var(--font-accent);
    font-size: 36px;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: var(--color-accent);
}

.artist-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.artist-gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
}

.artist-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.artist-gallery-item:hover img {
    transform: scale(1.05);
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
    padding: 50px 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid var(--color-accent);
}

.footer-copyright {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--color-accent);
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.footer-social {
    display: flex;
    gap: 30px;
    align-items: center;
}

.footer-social a {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    color: var(--color-accent);
}

.footer-location {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--color-accent);
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    text-align: right;
    line-height: 1.3;
}

/* ============================================
   BUTTONS
============================================ */
.btn {
    display: inline-block;
    font-family: var(--font-accent);
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
    padding: 12px 30px;
    border: 2px solid var(--color-accent);
    background-color: var(--color-accent);
    color: var(--color-white);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
}

.btn:hover {
    background-color: var(--color-bg);
    color: var(--color-accent);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-accent);
}

.btn-outline:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

/* ============================================
   FORMS
============================================ */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-accent);
    background-color: var(--color-bg);
    border: 1px solid var(--color-accent);
    border-radius: var(--border-radius);
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-border);
}

label {
    font-family: var(--font-accent);
    font-weight: 400;
    color: var(--color-accent);
    display: block;
    margin-bottom: 5px;
}

/* ============================================
   DIVIDER
============================================ */
.divider {
    width: 100%;
    height: 1px;
    background-color: var(--color-accent);
    margin: 40px 0;
}

/* ============================================
   PAGE TEMPLATES
============================================ */
.page-content {
    padding: 120px 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    font-family: var(--font-accent);
    font-size: 48px;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-align: center;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
    .portfolio-grid,
    .artists-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .artist-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* Header mobile */
    .site-header {
        padding: 15px 20px;
    }

    .site-logo img {
        height: 50px;
        width: 50px;
    }

    .site-tagline {
        display: none;
    }

    /* Hamburger menu */
    .menu-toggle {
        position: relative;
        width: 30px;
        height: 24px;
        padding: 0;
        margin-top: 0;
        font-size: 0;
        color: transparent;
    }

    .menu-toggle::before,
    .menu-toggle::after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: var(--color-accent);
        transition: all 300ms ease;
    }

    .menu-toggle::before {
        top: 0;
        box-shadow: 0 10px 0 var(--color-accent);
    }

    .menu-toggle::after {
        bottom: 0;
    }

    /* Fullscreen menu mobile */
    .fullscreen-menu {
        width: 100%;
        background-color: var(--color-bg);
    }

    .fullscreen-menu .menu-item a {
        font-size: 32px;
    }

    .menu-close {
        font-size: 24px;
        top: 20px;
        right: 20px;
    }

    /* Hero */
    .hero-image {
        max-width: calc(100% - 40px);
    }

    /* Portfolio grid - single column */
    .portfolio-grid,
    .artists-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }

    .portfolio-item-title {
        font-size: 28px;
    }

    .portfolio-item-subtitle {
        font-size: 16px;
    }

    /* Artist page */
    .artist-header {
        grid-template-columns: 1fr;
    }

    .artist-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .site-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
        padding: 40px 20px;
    }

    .footer-copyright,
    .footer-location {
        align-items: center;
        text-align: center;
    }

    .footer-location {
        text-align: center;
    }

    .footer-social {
        order: 0;
        gap: 20px;
    }

    .footer-copyright,
    .footer-social,
    .footer-social a,
    .footer-location {
        font-size: 14px;
    }

    /* Frame borders - thinner on mobile */
    :root {
        --frame-width: 8px;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 10px 15px;
    }

    .site-logo img {
        height: 40px;
        width: 40px;
    }

    .portfolio-section,
    .artists-section,
    .page-content {
        padding: 40px 15px;
    }

    .portfolio-grid,
    .artists-grid {
        gap: 30px;
        padding: 0 15px;
    }

    .portfolio-item-title {
        font-size: 24px;
    }

    .portfolio-item-subtitle {
        font-size: 14px;
    }

    .hero-title {
        font-size: 48px;
    }

    .artist-gallery-grid {
        grid-template-columns: 1fr;
    }

    .fullscreen-menu .menu-item a {
        font-size: 28px;
    }

    .site-footer {
        padding: 30px 15px;
        gap: 20px;
    }

    .footer-copyright,
    .footer-social,
    .footer-social a,
    .footer-location {
        font-size: 12px;
    }

    .footer-social {
        gap: 15px;
    }
}

/* ============================================
   WORDPRESS SPECIFIC
============================================ */
.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

.aligncenter {
    display: block;
    margin: 20px auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 14px;
    font-style: italic;
    color: var(--color-accent);
    margin-top: 5px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    width: 100%;
    height: auto;
}

/* Screen Reader Text */
.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;
    width: 1px;
    word-wrap: normal !important;
}

/* Navigation */
.navigation {
    margin: 40px 0;
    text-align: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-links a {
    font-family: var(--font-accent);
    text-transform: uppercase;
}

/* Comments */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--color-accent);
}

.comment-list {
    list-style: none;
}

.comment {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(217, 162, 167, 0.3);
}

.comment-author {
    font-family: var(--font-heading);
    font-weight: 700;
}

.comment-content {
    margin-top: 10px;
}

/* Admin Bar Fix */
body.admin-bar .site-header {
    top: calc(var(--frame-width) + 32px);
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: calc(var(--frame-width) + 46px);
    }
}
