/* CSS Variables */
:root {
    /* Colors */
    --primary-dark: 15 15% 8%;        /* #141414 */
    --secondary-dark: 220 15% 15%;    /* #202833 */
    --accent-purple: 270 70% 25%;     /* #663399 */
    --accent-blue: 220 80% 20%;       /* #0d2951 */
    --text-light: 0 0% 90%;           /* #e6e6e6 */
    --text-muted: 0 0% 70%;           /* #b3b3b3 */
    --gold-accent: 45 100% 65%;       /* #ffd700 */
    --danger: 0 70% 50%;              /* #cc3333 */
    
    /* Typography */
    --font-primary: 'Cinzel', serif;
    --font-secondary: 'Crimson Text', serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Borders */
    --border-radius: 8px;
    --border-radius-lg: 16px;
    
    /* Shadows */
    --shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(102, 51, 153, 0.3);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background: linear-gradient(135deg, 
        hsl(var(--primary-dark)) 0%, 
        hsl(var(--secondary-dark)) 100%);
    color: hsl(var(--text-light));
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(45deg, 
        hsl(var(--gold-accent)), 
        hsl(var(--accent-purple)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: hsl(var(--text-muted));
    font-style: italic;
    margin-bottom: var(--spacing-lg);
    font-size: 1.2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(102, 51, 153, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    color: hsl(var(--gold-accent));
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-link {
    color: hsl(var(--text-light));
    text-decoration: none;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: hsl(var(--accent-purple));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    color: hsl(var(--gold-accent));
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: hsl(var(--text-light));
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-xl) var(--spacing-sm);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, 
        rgba(102, 51, 153, 0.1) 0%, 
        transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(45deg, 
        hsl(var(--gold-accent)), 
        hsl(var(--text-light)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: hsl(var(--accent-purple));
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    color: hsl(var(--text-muted));
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(45deg, 
        hsl(var(--accent-purple)), 
        hsl(var(--accent-blue)));
    color: hsl(var(--text-light));
    text-decoration: none;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-dark);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.hero-visual {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.floating-runes {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.rune {
    font-size: 3rem;
    color: hsl(var(--accent-purple));
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
}

.rune:nth-child(2) { animation-delay: -1s; }
.rune:nth-child(3) { animation-delay: -2s; }
.rune:nth-child(4) { animation-delay: -3s; }
.rune:nth-child(5) { animation-delay: -4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Books Section */
.books-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(32, 40, 51, 0.3) 100%);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.book-card {
    background: rgba(32, 40, 51, 0.6);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 51, 153, 0.2);
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.book-cover {
    position: relative;
    height: 400px;
    overflow: hidden;
}

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

.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.book-overlay i {
    font-size: 3rem;
    color: hsl(var(--gold-accent));
}

.book-card:hover .book-overlay {
    opacity: 1;
}

.book-card:hover .book-cover img {
    transform: scale(1.1);
}

.book-info {
    padding: var(--spacing-md);
}

.book-title {
    color: hsl(var(--gold-accent));
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.book-description {
    color: hsl(var(--text-muted));
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: linear-gradient(45deg, 
        hsl(var(--gold-accent)), 
        hsl(45 80% 55%));
    color: hsl(var(--primary-dark));
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
}

.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Blog Section */
.blog-section {
    padding: var(--spacing-xl) 0;
    background: rgba(20, 20, 20, 0.8);
}

.blog-admin {
    background: rgba(32, 40, 51, 0.6);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-lg);
    border: 1px solid rgba(102, 51, 153, 0.3);
}

.admin-form,
.post-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: hsl(var(--gold-accent));
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-xs);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(102, 51, 153, 0.3);
    border-radius: var(--border-radius);
    color: hsl(var(--text-light));
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: hsl(var(--accent-purple));
    box-shadow: 0 0 10px rgba(102, 51, 153, 0.3);
}

.admin-btn {
    background: linear-gradient(45deg, 
        hsl(var(--accent-purple)), 
        hsl(var(--accent-blue)));
    color: hsl(var(--text-light));
    border: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.no-posts {
    text-align: center;
    padding: var(--spacing-xl);
    color: hsl(var(--text-muted));
}

.no-posts i {
    font-size: 4rem;
    color: hsl(var(--accent-purple));
    margin-bottom: var(--spacing-sm);
}

.admin-toggle {
    margin-top: var(--spacing-md);
    background: transparent;
    color: hsl(var(--gold-accent));
    border: 1px solid hsl(var(--gold-accent));
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-toggle:hover {
    background: hsl(var(--gold-accent));
    color: hsl(var(--primary-dark));
}

/* Contact Section */
.contact-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, 
        rgba(32, 40, 51, 0.3) 0%, 
        rgba(20, 20, 20, 0.9) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.contact-info h3 {
    color: hsl(var(--gold-accent));
    margin-bottom: var(--spacing-sm);
}

.contact-info p {
    color: hsl(var(--text-muted));
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: hsl(var(--accent-purple));
    font-weight: 600;
}

.contact-form {
    background: rgba(32, 40, 51, 0.6);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(102, 51, 153, 0.3);
}

.submit-btn {
    background: linear-gradient(45deg, 
        hsl(var(--accent-purple)), 
        hsl(var(--accent-blue)));
    color: hsl(var(--text-light));
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Footer */
.footer {
    background: hsl(var(--primary-dark));
    padding: var(--spacing-md) 0;
    border-top: 1px solid rgba(102, 51, 153, 0.3);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-primary);
    color: hsl(var(--gold-accent));
}

.footer-logo img {
    width: 24px;
    height: 24px;
}

.footer-text {
    color: hsl(var(--text-muted));
    text-align: center;
}

/* Floating Social Buttons */
.floating-social {
    position: fixed;
    right: var(--spacing-sm);
    bottom: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    z-index: 1000;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-dark);
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.1);
}

.whatsapp {
    background: #25D366;
}

.telegram {
    background: #0088cc;
}

.instagram {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

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

::-webkit-scrollbar-track {
    background: hsl(var(--primary-dark));
}

::-webkit-scrollbar-thumb {
    background: hsl(var(--accent-purple));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--gold-accent));
}
