/* LightCMS Main Stylesheet - Modern 2026 Design */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--background);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

p {
    margin-bottom: 1.25rem;
}

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

a:hover {
    color: var(--primary);
}

/* Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
}

.logo .site-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Footer */
.main-footer {
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    padding: 3rem 0;
    text-align: center;
}

.main-footer p {
    color: rgba(241, 245, 249, 0.7);
    margin-bottom: 0.5rem;
}

.main-footer .copyright {
    font-size: 0.875rem;
    color: rgba(241, 245, 249, 0.5);
}

/* Blog Post Styles */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 2rem;
    text-align: center;
}

.featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.post-title {
    margin-bottom: 1rem;
}

.post-meta {
    color: rgba(241, 245, 249, 0.6);
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.excerpt {
    font-size: 1.25rem;
    color: rgba(241, 245, 249, 0.8);
    font-style: italic;
    border-left: 3px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

.post-content {
    font-size: 1.1rem;
}

.post-content img {
    max-width: 100%;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.post-content blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: rgba(241, 245, 249, 0.8);
}

.post-content pre {
    background: rgba(30, 27, 75, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.post-content code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
}

.tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Press Release Styles */
.press-release {
    max-width: 800px;
    margin: 0 auto;
}

.press-header {
    margin-bottom: 2rem;
}

.press-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--primary);
    margin-bottom: 1rem;
}

.headline {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subheadline {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(241, 245, 249, 0.8);
    margin-bottom: 1rem;
}

.dateline {
    color: rgba(241, 245, 249, 0.6);
}

.press-body {
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.boilerplate, .contact {
    background: rgba(30, 27, 75, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.boilerplate h3, .contact h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Explanatory Page Styles */
.explanatory-page {
    max-width: 1000px;
    margin: 0 auto;
}

.hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, var(--background));
    border-radius: var(--border-radius);
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.subtitle {
    font-size: 1.25rem;
    color: rgba(241, 245, 249, 0.7);
}

.intro {
    font-size: 1.2rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: rgba(241, 245, 249, 0.8);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.main-content-section {
    font-size: 1.1rem;
}

.sidebar {
    background: rgba(30, 27, 75, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cta-section {
    text-align: center;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.5);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.6);
    color: white;
}

/* Collection Styles */
.collection-page {
    max-width: 1200px;
    margin: 0 auto;
}

.collection-header {
    text-align: center;
    margin-bottom: 3rem;
}

.collection-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.collection-item {
    background: rgba(30, 27, 75, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.collection-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.3);
}

.collection-item a {
    display: block;
    color: var(--text);
    text-decoration: none;
}

.collection-item .item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.collection-item h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    margin: 0;
}

.collection-item .excerpt {
    padding: 0 1.5rem;
    margin: 0;
    font-size: 0.95rem;
    color: rgba(241, 245, 249, 0.7);
    border: none;
    font-style: normal;
}

.collection-item time {
    display: block;
    padding: 1rem 1.5rem 1.5rem;
    font-size: 0.85rem;
    color: rgba(241, 245, 249, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .collection-items {
        grid-template-columns: 1fr;
    }
}

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

.blog-post, .press-release, .explanatory-page, .collection-page {
    animation: fadeInUp 0.6s ease-out;
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(30, 27, 75, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Lists */
ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

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

/* ======================================
   Homepage Styles
   ====================================== */
.homepage {
    max-width: 1200px;
    margin: 0 auto;
}

.homepage .hero-section {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 4rem;
}

.homepage .hero-section h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1.5rem;
}

.homepage .intro-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.2rem;
    color: rgba(241, 245, 249, 0.85);
}

.homepage .features-section {
    margin-bottom: 4rem;
}

.homepage .quote-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(30, 27, 75, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    text-align: center;
}

.homepage .quote-section blockquote {
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.8;
}

.homepage .quote-section cite {
    display: block;
    margin-top: 1.5rem;
    font-style: normal;
    color: rgba(241, 245, 249, 0.6);
}

/* Feature Grid for Homepage */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(30, 27, 75, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.3);
}

.feature-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Areas of Interest - Full Width Cards */
.areas-of-interest {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.area-card {
    background: rgba(30, 27, 75, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: all 0.3s ease;
}

.area-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.3);
}

.area-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.area-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(241, 245, 249, 0.9);
}

/* ======================================
   Concept Page Styles
   ====================================== */
.concept-page {
    max-width: 800px;
    margin: 0 auto;
}

.concept-page h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.concept-page .definition {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.concept-page .definition p:first-child {
    font-size: 1.3rem;
    color: rgba(241, 245, 249, 0.9);
}

.concept-page .related-topics {
    background: rgba(30, 27, 75, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.concept-page .related-topics h2 {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.concept-page .related-topics ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.concept-page .related-topics li {
    margin: 0;
}

.concept-page .related-topics a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.concept-page .related-topics a:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

.concept-page .further-reading {
    margin-top: 2rem;
}

.concept-page .further-reading h2 {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.concept-page .further-reading ul {
    padding-left: 0;
    list-style: none;
}

.concept-page .further-reading li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.concept-page .further-reading li:last-child {
    border-bottom: none;
}

/* ======================================
   Standard Page Styles
   ====================================== */
.standard-page {
    max-width: 900px;
    margin: 0 auto;
}

.standard-page h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2rem;
}

.standard-page .page-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.standard-page .page-content img {
    max-width: 100%;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

/* ======================================
   Contact Form Styles
   ====================================== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(30, 27, 75, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    padding: 2.5rem;
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.5);
}

.contact-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.contact-form .form-message {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.contact-form .form-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.contact-form .form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ======================================
   Social Links
   ====================================== */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    transition: all 0.2s;
}

.social-links a:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* ======================================
   Footer Enhancements
   ====================================== */
.main-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;
    max-width: 1000px;
    margin: 0 auto 2rem;
}

.main-footer .footer-section h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.main-footer .footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-footer .footer-section li {
    margin-bottom: 0.5rem;
}

.main-footer .footer-section a {
    color: rgba(241, 245, 249, 0.7);
    transition: color 0.2s;
}

.main-footer .footer-section a:hover {
    color: var(--text);
}

/* Mobile footer - keep 3 columns side by side */
@media (max-width: 768px) {
    .main-footer .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }

    .main-footer .footer-section h4 {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .main-footer .footer-section a {
        font-size: 0.85rem;
    }

    .main-footer .footer-section li {
        margin-bottom: 0.35rem;
    }
}
