/* Main styles for RÉMANENCE website */

:root {
    --color-bg-primary: #0a0a0a;
    --color-bg-secondary: #1a1a1a;
    --color-text-primary: #ffffff;
    --color-text-secondary: #cccccc;
    --color-accent-primary: #6e9eff;
    --color-accent-secondary: #a67c00;
    --font-primary: 'Cinzel', serif;
    --font-secondary: 'Raleway', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Stars background */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.stars {
    background: #000 url('https://i.imgur.com/YKY28eT.png') repeat top center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.twinkling {
    background: transparent url('https://i.imgur.com/XYMF4ca.png') repeat top center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    animation: move-twink-back 200s linear infinite;
}

@keyframes move-twink-back {
    from {background-position: 0 0;}
    to {background-position: -10000px 5000px;}
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
}

h2 {
    font-size: 2rem;
    letter-spacing: 0.1rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: var(--color-accent-primary);
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 5rem 0;
    position: relative;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 1rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.2rem;
    color: var(--color-text-primary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--color-accent-primary);
}

.btn-nav {
    padding: 0.5rem 1rem;
    background-color: var(--color-accent-primary);
    border-radius: 3px;
    color: var(--color-bg-primary) !important;
}

.btn-nav:hover {
    background-color: #5a8aff;
    color: var(--color-bg-primary) !important;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    padding: 0 1rem;
}

.book-cover {
    position: relative;
    margin-bottom: 2rem;
    max-width: 100%;
    height: auto;
}

.cover-image {
    max-height: 70vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

.geometric-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://i.imgur.com/JqYMGnk.png');
    background-size: cover;
    opacity: 0.1;
    mix-blend-mode: screen;
    pointer-events: none;
}

.hero-text {
    max-width: 800px;
}

.quote {
    font-family: var(--font-secondary);
    font-style: italic;
    font-size: 1.2rem;
    margin: 2rem 0;
    color: var(--color-text-secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 3px;
    text-decoration: none;
    font-family: var(--font-secondary);
    font-weight: 600;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

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

.btn-primary:hover {
    background-color: #5a8aff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(110, 158, 255, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--color-text-primary);
}

.btn-secondary:hover {
    background-color: var(--color-text-primary);
    color: var(--color-bg-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.cta-buttons {
    margin-top: 2rem;
}

/* About Section */
.about {
    background-color: var(--color-bg-secondary);
    position: relative;
    overflow: hidden;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-text {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
}

.geometric-element {
    position: absolute;
    width: 300px;
    height: 300px;
    background-image: url('https://i.imgur.com/JqYMGnk.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.05;
    right: -100px;
    bottom: -100px;
    transform: rotate(45deg);
    pointer-events: none;
}

/* Buy Section */
.buy {
    text-align: center;
}

.platforms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.platform {
    background-color: var(--color-bg-secondary);
    padding: 2rem;
    border-radius: 5px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.platform i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-accent-primary);
}

.btn-platform {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    margin-top: 1rem;
    background-color: var(--color-accent-primary);
    color: var(--color-bg-primary);
    text-decoration: none;
    border-radius: 3px;
    font-family: var(--font-secondary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-platform:hover {
    background-color: #5a8aff;
}

/* Excerpt Section */
.excerpt {
    background-color: var(--color-bg-secondary);
    position: relative;
    overflow: hidden;
}

.dialogue {
    background-color: rgba(26, 26, 26, 0.7);
    border-radius: 5px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    border-left: 3px solid var(--color-accent-primary);
}

.dialogue::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 5rem;
    color: var(--color-accent-primary);
    opacity: 0.2;
    font-family: var(--font-primary);
}

.dialogue-item {
    margin-bottom: 1.5rem;
}

.dialogue-item:last-child {
    margin-bottom: 0;
}

.speaker {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--color-accent-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.dialogue-item.observer .speaker {
    color: var(--color-text-primary);
}

.dialogue-item ul {
    margin-left: 2rem;
    margin-top: 0.5rem;
}

.dialogue-item ul li {
    margin-bottom: 0.5rem;
}

.read-more {
    text-align: center;
    margin-top: 2rem;
}

/* Newsletter Section */
.newsletter {
    text-align: center;
    background-color: var(--color-bg-primary);
    position: relative;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://i.imgur.com/JqYMGnk.png');
    background-size: cover;
    opacity: 0.05;
    pointer-events: none;
}

.newsletter-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.form-group input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 3px 0 0 3px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group button {
    padding: 1rem 2rem;
    background-color: var(--color-accent-primary);
    color: var(--color-bg-primary);
    border: none;
    border-radius: 0 3px 3px 0;
    font-family: var(--font-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-group button:hover {
    background-color: #5a8aff;
}

#form-status {
    margin-top: 1rem;
    min-height: 24px;
}

#form-status .success {
    color: #4CAF50;
}

#form-status .error {
    color: #F44336;
}

/* Author Section */
.author {
    text-align: center;
}

.author-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.author-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 2rem;
    background-color: var(--color-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-placeholder i {
    font-size: 4rem;
    color: var(--color-text-secondary);
}

.author-bio {
    text-align: left;
}

/* Footer */
footer {
    background-color: var(--color-bg-secondary);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--color-accent-primary);
    color: var(--color-bg-primary);
    transform: translateY(-3px);
}

.copyright {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}
