@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Inter:wght@300;400&display=swap');

:root {
    --bg-dark: #07080a;
    --card-bg: rgba(18, 20, 24, 0.65);
    --gold: #d4af37;
    --gold-dim: rgba(212, 175, 55, 0.3);
    --gold-glow: rgba(212, 175, 55, 0.15);
    --text-main: #e0e6ed;
    --text-muted: #8a919e;
}

html {
    background-color: var(--bg-dark);
    height: 100%;
}

body {
    background-color: var(--bg-dark);
    /* Premium matte fabric / noise texture overlay */
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-weight: 400;
    letter-spacing: 1px;
    margin-top: 0;
}

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

a:hover {
    text-shadow: 0 0 8px var(--gold-glow);
}

.glass-header {
    background: rgba(7, 8, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gold-dim);
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.glass-header h1 {
    margin: 0;
    font-size: 1.8rem;
    text-transform: uppercase;
}

.glass-header nav a {
    margin-left: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.container {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 2rem;
    flex: 1;
}

/* Sharp Borders & Glassmorphism */
.card, .post-card, .glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--gold-dim);
    border-radius: 0; /* Strictly sharp corners */
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.6), 0 0 20px var(--gold-glow);
    border-color: var(--gold);
}

/* Accent line on cards */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gold);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.card h2 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.badge.premium {
    display: inline-block;
    border: 1px solid var(--gold);
    color: var(--bg-dark);
    background: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 1rem;
    box-shadow: 0 0 10px var(--gold-glow);
}

.content {
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--text-main);
}

.locked-content {
    filter: blur(6px) grayscale(50%);
    user-select: none;
    pointer-events: none;
    opacity: 0.3;
}

.paywall-banner {
    background: rgba(7, 8, 10, 0.95);
    border: 1px solid var(--gold);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: -80px;
    position: relative;
    z-index: 10;
    box-shadow: 0 -20px 50px rgba(0,0,0,0.8);
}

.btn {
    display: inline-block;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 0.8rem 2rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn:hover {
    background: var(--gold);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--gold-glow);
}

/* Forms */
input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--gold-dim);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0;
}

input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
}

.center-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

/* Post Page Specific Styling */
.post-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.post-header h1 {
    font-size: 2.5rem;
    margin: 1.5rem 0;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.back-link {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    border-bottom: 1px solid transparent;
}

.back-link:hover {
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

.gold-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 2.5rem 0;
    opacity: 0.4;
}

/* Content Typography */
.content p {
    margin-bottom: 1.8rem;
    font-size: 1.15rem;
    letter-spacing: 0.3px;
    font-weight: 300;
}

.content blockquote {
    border-left: 2px solid var(--gold);
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.08), transparent);
    font-style: italic;
    color: var(--gold);
    font-size: 1.25rem;
}

.content h2 {
    font-size: 1.8rem;
    margin: 3rem 0 1.5rem 0;
    border-bottom: 1px solid var(--gold-dim);
    padding-bottom: 0.5rem;
}

.content h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
}
