/* ============================================
   SCUOLA DI CALLIGRAFIA GIAPPONESE - SHODO
   Stile ispirato alla calligrafia giapponese 
   e cinese antica
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;600;700&family=Noto+Serif+SC:wght@300;400;600;700&display=swap');

:root {
    --ink-black: #1a1a1a;
    --ink-light: #4a4a4a;
    --paper-white: #f8f5f0;
    --paper-cream: #f0ebe3;
    --seal-red: #b22222;
    --seal-red-dark: #8b0000;
    --bamboo-green: #5a7d5a;
    --brush-stroke: #2c2c2c;
    --font-jp: 'Noto Serif JP', 'Noto Serif SC', 'Georgia', serif;
    --font-body: 'Noto Serif SC', 'Noto Serif JP', 'Georgia', serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--paper-white);
    color: var(--ink-black);
    line-height: 1.8;
    font-size: 16px;
}

/* Header & Navigation */
.site-header {
    background: linear-gradient(180deg, var(--paper-white) 0%, var(--paper-cream) 100%);
    border-bottom: 2px solid var(--ink-black);
    position: relative;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--seal-red);
    opacity: 0.6;
}

.site-title {
    font-family: var(--font-jp);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--ink-black);
    text-transform: uppercase;
}

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

/* Navigation */
.main-navigation {
    background: var(--ink-black);
}

.main-navigation ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 16px 28px;
    color: var(--paper-white);
    text-decoration: none;
    font-family: var(--font-jp);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.main-navigation a:hover {
    color: var(--paper-cream);
    border-bottom-color: var(--seal-red);
    background: rgba(255,255,255,0.05);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 26, 26, 0.55);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--paper-white);
}

.hero-title {
    font-family: var(--font-jp);
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-family: var(--font-jp);
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    line-height: 1.6;
}

/* Content Sections */
.content-section {
    padding: 80px 0;
    position: relative;
}

.content-section.alt-bg {
    background-color: var(--paper-cream);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.03"><rect fill="%231a1a1a" width="100" height="100"/></svg>');
}

.section-title {
    font-family: var(--font-jp);
    font-size: 2.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--seal-red);
}

/* Cards & Grids */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.shodo-card {
    background: var(--paper-white);
    border: 1px solid rgba(26,26,26,0.1);
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.shodo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--ink-black);
    transition: width 0.3s ease;
}

.shodo-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.shodo-card:hover::before {
    width: 6px;
    background: var(--seal-red);
}

.shodo-card h3 {
    font-family: var(--font-jp);
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--ink-black);
}

.shodo-card .meta {
    font-size: 0.85rem;
    color: var(--ink-light);
    margin-bottom: 15px;
    font-style: italic;
}

/* Buttons */
.shodo-button {
    display: inline-block;
    padding: 14px 36px;
    background: var(--ink-black);
    color: var(--paper-white);
    text-decoration: none;
    font-family: var(--font-jp);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    border: 2px solid var(--ink-black);
    transition: all 0.3s ease;
    cursor: pointer;
}

.shodo-button:hover {
    background: transparent;
    color: var(--ink-black);
}

.shodo-button.outline {
    background: transparent;
    color: var(--ink-black);
}

.shodo-button.outline:hover {
    background: var(--ink-black);
    color: var(--paper-white);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--paper-cream);
    cursor: pointer;
}

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

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

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(26,26,26,0.85));
    color: var(--paper-white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.gallery-item .lock-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: var(--seal-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

/* Calendar Styling */
.tribe-events-calendar {
    font-family: var(--font-body) !important;
}

.tribe-events-calendar .tribe-events-event-meta {
    background: var(--paper-cream) !important;
    border-left: 4px solid var(--seal-red) !important;
}

.tribe-events-calendar .tribe-events-event-title a {
    font-family: var(--font-jp) !important;
    color: var(--ink-black) !important;
}

/* Footer */
.site-footer {
    background: var(--ink-black);
    color: var(--paper-cream);
    padding: 60px 0 30px;
    text-align: center;
    border-top: 3px solid var(--seal-red);
}

.site-footer .footer-title {
    font-family: var(--font-jp);
    font-size: 1.8rem;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
}

.site-footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Login / Members Area */
.members-only-banner {
    background: var(--paper-cream);
    border: 2px dashed var(--seal-red);
    padding: 40px;
    text-align: center;
    margin: 40px 0;
}

.members-only-banner h3 {
    font-family: var(--font-jp);
    color: var(--seal-red);
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .main-navigation ul { flex-direction: column; }
    .main-navigation a { padding: 12px 20px; text-align: center; }
    .card-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 1.6rem; }
}

/* Typography enhancements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-jp);
    font-weight: 600;
    letter-spacing: 0.05em;
}

p {
    margin-bottom: 1.5em;
}

a {
    color: var(--seal-red);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--seal-red-dark);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--paper-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--ink-black);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--seal-red);
}
