/* 
 * Flux Surface - Art Blog
 * Main Stylesheet
 */

/* Base Styles & Variables */
:root {
    --primary-color: #6c5ce7;
    --primary-dark: #5541d7;
    --secondary-color: #fd79a8;
    --accent-color: #00cec9;
    --text-color: #2d3436;
    --text-light: #636e72;
    --light-color: #f8f9fa;
    --dark-color: #2d3436;
    --bg-color: #ffffff;
    --border-color: #dfe6e9;
    --success-color: #00b894;
    --error-color: #d63031;
    --warning-color: #fdcb6e;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Open Sans', Arial, sans-serif;
}

/* Reset & Global Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

ul, ol {
    list-style: none;
}

/* Custom List Styling */
.custom-list {
    padding-left: 2rem;
    margin: 1.5rem 0;
}

.custom-list li {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.custom-list li::before {
    content: "";
    position: absolute;
    left: -1.5rem;
    top: 0.8rem;
    width: 0.8rem;
    height: 0.8rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    transform: rotate(45deg);
}

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

h1 {
    font-size: 3.6rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 2.2rem;
}

h4 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.6rem;
}

strong {
    font-weight: 700;
}

/* Buttons & Forms */
.btn, button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 1.2rem 2.4rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    font-size: 1.6rem;
}

.btn:hover, button:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #e84393;
}

.btn-cookie {
    padding: 0.8rem 1.6rem;
    margin: 0 0.5rem;
    font-size: 1.4rem;
}

input, textarea, select {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1.6rem;
    font-family: var(--font-body);
    font-size: 1.6rem;
    transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.2);
}

label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

/* Container */
.container {
    width: 100%;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--dark-color);
    font-weight: 700;
}

.logo img {
    width: 4.8rem;
    height: 4.8rem;
    border-radius: 50%;
    margin-right: 1rem;
}

.logo span {
    font-family: var(--font-heading);
    font-size: 2.2rem;
}

nav ul {
    display: flex;
}

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

nav ul li a {
    font-weight: 600;
    color: var(--text-color);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, rgba(108, 92, 231, 0.9), rgba(253, 121, 168, 0.9)), url('images/1.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 8rem 2rem;
}

.hero h1 {
    font-size: 4.8rem;
    margin-bottom: 2rem;
    color: white;
}

.hero p {
    font-size: 2rem;
    max-width: 60rem;
    margin: 0 auto 3rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(to right, rgba(108, 92, 231, 0.9), rgba(253, 121, 168, 0.9));
    color: white;
    text-align: center;
    padding: 6rem 2rem;
}

.page-header h1 {
    color: white;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.8rem;
    max-width: 60rem;
    margin: 0 auto;
}

/* Featured Posts */
.featured-posts {
    padding: 8rem 0;
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    gap: 3rem;
}

.post-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    background: white;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.post-image {
    position: relative;
    height: 20rem;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.views-count {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.views-count svg {
    margin-right: 0.5rem;
}

.post-content {
    padding: 2rem;
}

.post-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.read-more {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.read-more::after {
    content: '→';
    margin-left: 0.5rem;
    transition: var(--transition);
}

.read-more:hover::after {
    margin-left: 1rem;
}

/* Blog Posts Section */
.blog-posts {
    padding: 6rem 0;
}

.blog-post {
    display: grid;
    grid-template-columns: 35rem 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
    padding-bottom: 5rem;
    border-bottom: 1px solid var(--border-color);
}

.blog-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.blog-post .post-image {
    height: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-meta {
    display: flex;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.4rem;
}

.post-meta .date {
    margin-right: 2rem;
}

.post-meta .author {
    position: relative;
}

.post-meta .author::before {
    content: '•';
    position: absolute;
    left: -1.2rem;
}

/* Article Page */
.blog-article {
    padding: 6rem 0;
}

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

.article-meta {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.6rem;
}

.article-meta > span {
    margin: 0 1rem;
}

.article-featured-image {
    margin-bottom: 4rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    max-height: 50rem;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    max-width: 80rem;
    margin: 0 auto;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 3rem;
}

.article-content p {
    margin-bottom: 2rem;
    font-size: 1.7rem;
}

.article-tags {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.article-tags span {
    font-weight: 600;
    margin-right: 1rem;
}

.article-tags a {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem;
    background-color: #f0f0f0;
    border-radius: 2rem;
    color: var(--text-color);
    font-size: 1.4rem;
}

.article-tags a:hover {
    background-color: var(--primary-color);
    color: white;
}

.article-share {
    margin: 4rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-share span {
    margin-right: 1.5rem;
    font-weight: 600;
}

.social-share {
    display: flex;
}

.social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: #f0f0f0;
    margin: 0 0.5rem;
    color: var(--text-color);
}

.social-share a:hover {
    background-color: var(--primary-color);
    color: white;
}

.related-posts {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 3rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-post {
    display: block;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.related-post img {
    width: 100%;
    height: 15rem;
    object-fit: cover;
}

.related-post h4 {
    padding: 1.5rem;
    margin-bottom: 0;
    font-size: 1.6rem;
}

/* Newsletter Section */
.newsletter {
    background-color: #f5f5f5;
    padding: 6rem 0;
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 1.5rem;
}

.newsletter p {
    max-width: 60rem;
    margin: 0 auto 3rem;
    color: var(--text-light);
}

.newsletter form {
    display: flex;
    max-width: 50rem;
    margin: 0 auto;
}

.newsletter input {
    flex: 1;
    margin-bottom: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.newsletter button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* About Page */
.about-intro {
    padding: 6rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 40rem;
    gap: 4rem;
    align-items: center;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.team-section {
    padding: 6rem 0;
    background-color: #f5f5f5;
}

.team-section h2,
.section-intro {
    text-align: center;
}

.section-intro {
    max-width: 70rem;
    margin: 0 auto 4rem;
    color: var(--text-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
    gap: 3rem;
}

.team-member {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    text-align: center;
    padding-bottom: 2rem;
}

.team-member img {
    width: 100%;
    height: 30rem;
    object-fit: cover;
}

.team-member h3 {
    margin: 2rem 0 0.5rem;
}

.team-member p {
    padding: 0 2rem;
    margin-bottom: 1rem;
}

.team-member p:first-of-type {
    font-weight: 600;
    color: var(--primary-color);
}

.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    background-color: #f0f0f0;
    margin: 0 0.5rem;
    color: var(--text-color);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

.values-section {
    padding: 6rem 0;
}

.values-section h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
    gap: 3rem;
}

.value-card {
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.value-icon {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.testimonials {
    padding: 6rem 0;
    background-color: #f5f5f5;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    gap: 3rem;
}

.testimonial {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    padding: 3rem;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author .name {
    font-weight: 600;
}

.testimonial-author .title {
    color: var(--text-light);
}

.cta-section {
    padding: 6rem 0;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 1.5rem;
}

.cta-section p {
    max-width: 60rem;
    margin: 0 auto 3rem;
    color: var(--text-light);
}

.newsletter-form {
    display: flex;
    max-width: 50rem;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    margin-bottom: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.newsletter-form button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Contact Page */
.contact-section {
    padding: 6rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2,
.contact-form-container h2 {
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    margin-bottom: 3rem;
}

.info-icon {
    width: 5rem;
    height: 5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2rem;
}

.info-text h3 {
    margin-bottom: 0.5rem;
}

.info-text p,
.info-text a {
    color: var(--text-light);
}

.social-connect {
    margin-top: 4rem;
}

.social-connect h3 {
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: #f0f0f0;
    margin-right: 1rem;
    color: var(--text-color);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
}

.contact-form {
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.map-section {
    padding: 6rem 0;
    background-color: #f5f5f5;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.map-container {
    height: 40rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #e0e0e0;
    color: var(--text-light);
}

.map-placeholder svg {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.map-address {
    font-weight: 600;
    margin-top: 1rem;
}

.faq-section {
    padding: 6rem 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45rem, 1fr));
    gap: 3rem;
}

.faq-item {
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.faq-item h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.faq-item p {
    margin-bottom: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 50rem;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.8rem;
    cursor: pointer;
}

.thank-you-message {
    text-align: center;
}

.thank-you-message svg {
    color: var(--success-color);
    margin-bottom: 2rem;
}

.thank-you-message h2 {
    margin-bottom: 1.5rem;
}

.thank-you-message p {
    margin-bottom: 3rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 6rem 0 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo img {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.footer-links h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links ul li a {
    color: #a0a0a0;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-social h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.footer-social .social-icons a {
    background-color: #444;
    color: white;
}

.footer-social .social-icons a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 3rem;
    text-align: center;
    color: #a0a0a0;
    font-size: 1.4rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: none;
}

.cookie-banner.active {
    display: block;
}

.cookie-content {
    padding: 2rem;
    max-width: 120rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cookie-content p {
    margin-bottom: 2rem;
    max-width: 80rem;
}

.cookie-buttons {
    margin-bottom: 1.5rem;
}

.cookie-content a {
    font-size: 1.4rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    html {
        font-size: 58%;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    .hero h1 {
        font-size: 3.6rem;
    }
    
    .hero p {
        font-size: 1.8rem;
    }
    
    .blog-post {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 2rem;
    }
    
    nav ul li {
        margin: 0 1rem;
    }
    
    .newsletter form,
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter input,
    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 1rem;
    }
    
    .newsletter button,
    .newsletter-form button {
        border-radius: var(--border-radius);
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-buttons {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons button {
        margin: 0.5rem 0;
    }
}
