/*
Theme Name: Antikvariat Werner Stensgård
Description: En sofistikerad WordPress-tema för svenskt antikvariat med elegant typografi och responsiv design.
Version: 1.0
Author: Werner Stensgård
Text Domain: antikvariat-werner
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Lora:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&display=swap');

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

body {
    font-family: 'Lora', serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Theme Colors */
:root {
    --primary-teal: #5C9B9A;
    --dark-teal: #4A7C7B;
    --light-teal: #E8F4F4;
    --cream: #F9F7F4;
    --dark-gray: #2C2C2C;
    --medium-gray: #666666;
    --light-gray: #F5F5F5;
    --white: #ffffff;
}

/* Header Styles */
.site-header {
    background-color: var(--primary-teal);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: white;
    text-decoration: none;
}

.site-title:hover {
    color: white;
    opacity: 0.9;
}

.site-description {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    font-style: italic;
    margin-top: 0.5rem;
    opacity: 0.9;
}

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

/* Main Content Area */
.main-content {
    padding: 0;
    background-color: var(--white);
}

/* Three Section Grid */
.three-section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
    padding: 0;
    min-height: 500px;
    width: 100vw;
}

@media (min-width: 768px) {
    .three-section-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
    }
}

/* Section Cards */
.section-card {
    border-radius: 0;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: none;
    box-shadow: none;
}

/* Different transparent overlays for each section */
.section-card:nth-child(1) {
    background: rgba(92, 155, 154, 0.65);
}

.section-card:nth-child(2) {
    background: rgba(139, 69, 19, 0.65);
}

.section-card:nth-child(3) {
    background: rgba(72, 61, 139, 0.65);
}

.section-card:hover {
    transform: none;
    background-color: rgba(92, 155, 154, 0.8);
}

.section-card:nth-child(2):hover {
    background-color: rgba(139, 69, 19, 0.8);
}

.section-card:nth-child(3):hover {
    background-color: rgba(72, 61, 139, 0.8);
}

/* Clickable section card */
.section-card-clickable {
    text-decoration: none;
    cursor: pointer;
}

.section-card-clickable:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.section-card-clickable h3 {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.section-card h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.section-card p {
    color: white;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--dark-teal);
    text-decoration: none;
    border-radius: 8px;
    font-family: 'Lora', serif;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.btn:hover {
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--dark-teal);
    text-decoration: none;
}

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

.btn-secondary:hover {
    background-color: var(--primary-teal);
    color: white;
}

/* Footer */
.site-footer {
    background-color: var(--dark-gray);
    color: white;
    padding: 3rem 0 2rem;
    text-align: center;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-content h4 {
    color: var(--primary-teal);
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.8;
}


/* Responsive Design */
@media (max-width: 767px) {
    .site-title {
        font-size: 2rem;
    }
    
    .section-card {
        padding: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Newsletter Form Placeholder */
.newsletter-form {
    max-width: 300px;
    margin: 0 auto;
}

.newsletter-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-family: 'Lora', serif;
    font-size: 0.95rem;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-teal);
}

/* Accessibility */
.btn:focus,
.newsletter-input:focus {
    outline: 2px solid var(--primary-teal);
    outline-offset: 2px;
}

/* Loading and Hover States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* WordPress specific styles */
.wp-block-group {
    margin: 0;
}

.alignwide {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* Header Layout with Logo */
.header-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: opacity 0.3s ease;
}

.header-link:hover {
    opacity: 0.8;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: none;
    padding: 0 2rem;
    width: 100%;
}

.header-logo {
    flex-shrink: 0;
}

.logo-image {
    height: 100px;
    width: auto;
    opacity: 0.9;
}

.header-text {
    text-align: center;
    flex-grow: 1;
}

/* Instagram Card Hover Effects */
.instagram-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(92, 155, 154, 0.25);
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--light-teal) 50%, white 100%);
}

.instagram-card:hover .instagram-icon {
    background: white;
    box-shadow: 0 6px 20px rgba(92, 155, 154, 0.4);
}

.instagram-card:hover .instagram-icon svg {
    fill: var(--primary-teal);
}

/* Mobile responsive header */
@media (max-width: 767px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo-image {
        height: 80px;
    }
    
    .header-text {
        text-align: center;
    }
}
