/**
 * GhibliMe - Main Styles
 * Main styling for the GhibliMe website
 */

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

:root {
    /* Ghibli-inspired color palette */
    --primary-color: #4a86e8;
    --secondary-color: #93c47d;
    --accent-color: #f6b26b;
    --background-color: #f9f7e8;
    --text-color: #333333;
    --light-color: #ffffff;
    --dark-color: #2c3e50;
    
    /* Font sizes */
    --font-small: 0.875rem;
    --font-medium: 1rem;
    --font-large: 1.25rem;
    --font-xlarge: 1.5rem;
    --font-xxlarge: 2rem;
    --font-hero: 3rem;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: var(--font-xxlarge);
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto;
}

.hidden {
    display: none !important;
}

/* Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.logo h1 {
    font-size: var(--font-xlarge);
    color: var(--primary-color);
    margin-right: 10px;
}

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

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

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

.language-selector select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background-color: var(--light-color);
    font-family: 'Quicksand', sans-serif;
    cursor: pointer;
}

/* Hero Section Styles */
#hero {
    padding-top: 150px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #e6f7ff 0%, #f9f7e8 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-content h2 {
    font-size: var(--font-hero);
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: var(--font-large);
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-color);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: var(--font-medium);
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(246, 178, 107, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(246, 178, 107, 0.5);
}

.hero-image {
    flex: 1;
    position: relative;
}

.before-after-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.before-image, .after-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s;
}

.before-image {
    opacity: 1;
}

.after-image {
    opacity: 0;
}

.before-after-container:hover .before-image {
    opacity: 0;
}

.before-after-container:hover .after-image {
    opacity: 1;
}

/* Features Section Styles */
#features {
    background-color: var(--light-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Gallery Section Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.gallery-before, .gallery-after {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s;
}

.gallery-before {
    opacity: 1;
}

.gallery-after {
    opacity: 0;
}

.gallery-image-container:hover .gallery-before {
    opacity: 0;
}

.gallery-image-container:hover .gallery-after {
    opacity: 1;
}

/* Upload Section Styles */
.upload-container {
    max-width: 800px;
    margin: 0 auto;
}

.upload-area {
    border: 3px dashed var(--primary-color);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
    transition: border-color 0.3s, background-color 0.3s;
}

.upload-area.dragover {
    border-color: var(--accent-color);
    background-color: rgba(246, 178, 107, 0.1);
}

.upload-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background-image: url('../images/upload-icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.upload-instructions h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.file-input-label {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    margin: 15px 0;
    transition: background-color 0.3s;
}

.file-input-label:hover {
    background-color: #3a76d8;
}

.file-restrictions {
    font-size: var(--font-small);
    color: #777;
    margin-top: 10px;
}

.preview-container {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.preview-original, .preview-transformed {
    flex: 1;
    padding: 20px;
}

.preview-original h4, .preview-transformed h4 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-color);
}

#original-preview, #transformed-preview {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#transformed-preview-container {
    position: relative;
}

/* Sharing Section Styles */
.sharing-options {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.share-btn {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.share-btn i {
    margin-right: 8px;
}

.share-btn:hover {
    background-color: #3a76d8;
}

#facebook-btn {
    background-color: #3b5998;
}

#twitter-btn {
    background-color: #1da1f2;
}

#instagram-btn {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.branding-toggle {
    margin-top: 20px;
}

/* FAQ Section Styles */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    background-color: var(--light-color);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: var(--font-medium);
    color: var(--primary-color);
}

.faq-toggle {
    font-size: 24px;
    color: var(--primary-color);
}

.faq-answer {
    background-color: #f9f9f9;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

/* Footer Styles */
#footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 20px;
    position: relative;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-logo h2 {
    color: var(--light-color);
    margin-bottom: 10px;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 150px;
    margin-bottom: 20px;
}

.footer-column h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--light-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: var(--font-small);
    color: #aaa;
    margin-bottom: 5px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }
    
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .language-selector {
        margin-top: 15px;
    }
    
    #hero {
        padding-top: 200px;
    }
    
    .hero-content, .hero-image {
        flex: none;
        width: 100%;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .preview-container {
        flex-direction: column;
    }
    
    .preview-original, .preview-transformed {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}
