/* Ghibli Avatar Generator - Main Stylesheet
-------------------------------------------------- */

/* Global Variables */
:root {
    --ghibli-blue: #4a90e2;
    --ghibli-light-blue: #73b6e6;
    --ghibli-dark-blue: #2c5282;
    --ghibli-teal: #5bbfba;
    --ghibli-green: #78c2ad;
    --ghibli-yellow: #f9d56e;
    --ghibli-orange: #f3a953;
    --ghibli-pink: #f8a5c2;
    --ghibli-red: #e66767;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
}

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* Background Colors */
.bg-ghibli {
    background: linear-gradient(135deg, var(--ghibli-blue) 0%, var(--ghibli-teal) 100%);
}

.bg-light {
    background-color: var(--light-gray) !important;
}

/* Text Colors */
.text-ghibli {
    color: var(--ghibli-blue);
}

/* Header Styles */
header {
    position: relative;
    overflow: hidden;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, var(--ghibli-yellow), var(--ghibli-pink), var(--ghibli-teal), var(--ghibli-blue));
    opacity: 0.7;
}

.ghibli-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.tagline {
    font-size: 1.1rem;
    font-weight: 300;
    font-style: italic;
}

.free-badge {
    background-color: var(--ghibli-orange);
    color: white;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Example Gallery */
.example-card {
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: 100%;
}

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

.example-img-container {
    overflow: hidden;
    position: relative;
    border-radius: 6px;
}

.example-img-container img {
    transition: transform 0.5s;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.example-card:hover .example-img-container img {
    transform: scale(1.05);
}

/* Carousel Styles */
.example-carousel {
    border-radius: 6px;
    overflow: hidden;
}

.example-carousel .carousel-inner {
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.example-carousel .carousel-item {
    height: 100%;
}

.example-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.example-card:hover .example-carousel .carousel-item img {
    transform: scale(1.05);
}

/* Upload Form */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.card-header {
    border-bottom: none;
    padding: 1.25rem;
}

.btn-ghibli {
    background: linear-gradient(135deg, var(--ghibli-blue) 0%, var(--ghibli-teal) 100%);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-ghibli:hover {
    background: linear-gradient(135deg, var(--ghibli-teal) 0%, var(--ghibli-blue) 100%);
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    color: white;
}

.btn-ghibli:focus, .btn-ghibli:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(50, 50, 93, 0.1), 0 1px 2px rgba(0, 0, 0, 0.08);
    color: white;
}

.form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--ghibli-blue);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

/* Upload Area */
.upload-area {
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    background-color: #f9f9f9;
}

.upload-area:hover {
    border-color: var(--ghibli-blue);
}

.upload-area.dragover {
    border-color: var(--ghibli-teal);
    background-color: rgba(91, 191, 186, 0.1);
}

.upload-placeholder {
    color: #757575;
}

.upload-placeholder i {
    color: #adb5bd;
}

.upload-placeholder .text-primary {
    color: var(--ghibli-blue) !important;
    font-weight: 600;
    cursor: pointer;
}

.image-preview {
    display: none;
    position: relative;
    padding: 10px;
}

.image-preview img {
    max-height: 200px;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
}

.btn-remove-img {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ghibli-red);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

.btn-remove-img:hover {
    background-color: white;
    transform: scale(1.1);
}

/* Steps Guide */
.steps-guide {
    margin-bottom: 2rem;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ghibli-blue) 0%, var(--ghibli-teal) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* Free Notice */
.free-notice {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    border-radius: 8px;
}

.free-notice i {
    margin-right: 5px;
}

/* Progress Bar */
.progress {
    border-radius: 30px;
    overflow: hidden;
    background-color: #e9ecef;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.progress-bar {
    background: linear-gradient(90deg, var(--ghibli-teal), var(--ghibli-blue));
}

.progress-status {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Feature Boxes */
.feature-box {
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.feature-box i {
    margin-bottom: 1rem;
}

.feature-box h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

/* FAQ Section */
.accordion {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.accordion-item {
    border: none;
    border-bottom: 1px solid #e0e0e0;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-button:not(.collapsed) {
    color: var(--ghibli-dark-blue);
    background-color: rgba(74, 144, 226, 0.1);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(74, 144, 226, 0.25);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234a90e2'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Success Modal */
.modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.modal-header {
    border-bottom: none;
}

.modal-footer {
    border-top: none;
}

/* Footer */
.footer {
    background-color: var(--dark-gray);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ghibli-title {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }

    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .steps-guide p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .ghibli-title {
        font-size: 1.8rem;
    }
    
    .free-badge {
        font-size: 0.8rem;
        padding: 3px 10px;
    }
    
    .card-header h3 {
        font-size: 1.3rem;
    }
    
    .feature-box h4 {
        font-size: 1.1rem;
    }
} 