/*
Theme Name: ShameFree
Theme URI: https://shamefree.com
Author: AI Coding Agent
Description: A minimal, Japanese-inspired black and white magazine theme with realistic glass effects. Sophisticated Dark aesthetic.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shamefree
Tags: black-and-white, minimal, magazine, grid-layout, two-columns, block-styles, glassmorphism
*/

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=Space+Grotesk:wght@300;400;700&display=swap');

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-bg: #f9f9f9;
    --border-color: #000000;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-display: 'Space Grotesk', sans-serif;
}

/* --- Resets --- */
* { box-sizing: border-box; }
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-serif);
    background-color: var(--white);
    color: var(--black);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover { opacity: 0.5; }

img { max-width: 100%; height: auto; }

/* --- Layout --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
}

.architect-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    min-height: 100vh;
}

.col-main { grid-column: span 8; border-right: 1px solid var(--black); padding-right: 48px; }
.col-side { grid-column: span 4; padding: 48px; background-color: var(--gray-bg); }

@media (max-width: 1024px) {
    .col-main, .col-side { grid-column: span 12; border-right: none; padding: 24px; }
}

/* --- Layout Utilities --- */
.grid { display: grid; }
.grid-cols-12 { grid-template-columns: repeat(12, 1fr); }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.col-span-12 { grid-column: span 12 / span 12; }

.gap-px { gap: 1px; }
.gap-8 { gap: 2rem; }
.bg-black { background-color: var(--black); }
.bg-white { background-color: var(--white); }

.pt-32 { padding-top: 8rem; }
.py-32 { padding: 8rem 0; }
.p-12 { padding: 3rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-4 { padding-bottom: 1rem; }

.mb-16 { margin-bottom: 4rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }

.architect-border { border: 1px solid var(--black); }
.architect-border-b { border-bottom: 1px solid var(--black); }
.architect-border-r { border-right: 1px solid var(--black); }

.flex { display: flex; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 2rem; }

.text-8xl { font-size: 6rem; }
.text-4xl { font-size: 2.25rem; }
.text-3xl { font-size: 1.875rem; }
.text-\[8rem\] { font-size: 8rem; }
.text-\[10rem\] { font-size: 10rem; }

.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-tight { letter-spacing: -0.025em; }
.leading-none { line-height: 1; }
.opacity-20 { opacity: 0.2; }
.opacity-40 { opacity: 0.4; }

.max-w-full { max-width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }
.min-h-screen { min-height: 100vh; }

.aspect-\[4\/5\] { aspect-ratio: 4 / 5; }
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.w-full { width: 100%; }
.h-full { height: 100%; }

.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:text-white\/40 { color: rgba(255, 255, 255, 0.4); }
.group:hover .group-hover\:translate-x-2 { transform: translateX(0.5rem); }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-500 { transition-duration: 500ms; }
.duration-700 { transition-duration: 700ms; }

/* --- Header Components --- */
.custom-logo-link {
    display: flex;
    align-items: center;
    max-height: 48px;
    overflow: hidden;
}

.custom-logo {
    display: block;
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.site-logo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 4px 16px;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

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

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.site-header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--black);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .bar-top { transform: translateY(4px) rotate(45deg); }
.mobile-menu-toggle.active .bar-bottom { transform: translateY(-4px) rotate(-45deg); }

@media screen and (max-width: 1024px) {
    .main-navigation { display: none; }
    .mobile-menu-toggle { display: flex; }
}

/* Mobile Dropdown */
.mobile-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 9998;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.mobile-dropdown.active {
    transform: translateY(0);
}

.mobile-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.mobile-navigation li {
    margin-bottom: 24px;
}

.mobile-navigation a {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    line-height: 1;
}

.mt-12 { margin-top: 3rem; }
.pt-8 { padding-top: 2rem; }
.border-t { border-top: 1px solid var(--black); }
.border-black\/10 { border-color: rgba(0,0,0,0.1); }
.no-scroll { overflow: hidden; }

.header-search-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.search-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-sans);
    margin-right: 8px;
    opacity: 0.4;
    font-style: italic;
}

.search-dot {
    width: 16px;
    height: 16px;
    border: 1px solid #000;
    border-radius: 50%;
}

/* --- Entry Styling --- */
.entry-title {
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 400;
    font-style: italic;
    line-height: 0.85;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    margin: 0 0 48px 0;
}

.entry-title a {
    color: var(--black);
    text-decoration: none;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--black);
    z-index: 9999; /* Increased for admin bar */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    transition: top 0.3s ease;
}

/* Fix for WordPress Admin Bar */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* --- Search Components --- */
.search-form {
    border-bottom: 4px solid var(--black);
    width: 100%;
}

.search-field {
    width: 100%;
    border: none;
    background: transparent;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    padding: 24px 0;
    outline: none;
}

.search-field::placeholder {
    opacity: 0.1;
}

.search-submit {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

@media (max-width: 768px) {
    .entry-title { font-size: 3.5rem; }
}

.entry-meta {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    opacity: 0.4;
    margin-bottom: 16px;
}

.entry-content {
    font-size: 1.5rem;
    line-height: 1.6;
    font-style: italic;
}

.read-more-link {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--black);
    padding-bottom: 4px;
    margin-top: 24px;
}

/* --- Glass Effects --- */
.glass-architect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

/* --- Sidebar --- */
.widget-title {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--black);
    padding-bottom: 8px;
    margin-bottom: 32px;
}

/* --- Footer --- */
.site-footer {
    height: 96px;
    border-top: 1px solid var(--black);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: 0.2em;
}

.social-links { display: flex; gap: 24px; }
