/* AI Girlfriend Plugin - Frontend Styles */
/* Variables and animations are now loaded from _variables.css and _animations.css */

/* Import dependencies */
@import url('./_variables.css');
@import url('./_animations.css');

/* ==========================================================================
   Global Styles
   ========================================================================== */

.aigf-btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: none;
    outline: none;
}

.aigf-btn-primary {
    background-color: var(--primary);
    color: var(--text-light1);
    border-color: var(--primary);
}

.aigf-btn-primary:hover {
    background-color: var(--dark-purple1);
    border-color: var(--dark-purple1);
    color: var(--text-light1);
}

.aigf-btn-primary:disabled {
    background-color: var(--muted);
    border-color: var(--muted);
    cursor: not-allowed;
    position: relative;
}

.aigf-btn-primary:disabled.loading {
    color: transparent;
}

.aigf-btn-primary:disabled.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

.aigf-btn-secondary {
    background-color: transparent;
    color: #666;
    border-color: #ddd;
}

.aigf-btn-secondary:hover {
    background-color: #f5f5f5;
    color: #333;
}

.aigf-btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.aigf-btn-outline:hover {
    background: var(--primary);
    color: var(--text-light1);
}

.aigf-btn-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-weight: 600;
}

.aigf-btn-premium:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.aigf-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.aigf-btn-lg {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
}

.aigf-btn-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.aigf-btn-close:hover {
    color: #666;
}

.aigf-btn-icon {
    padding: 4px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    border-radius: 2px;
}

.aigf-field {
    margin-bottom: 20px;
}

.aigf-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.aigf-field input,
.aigf-field textarea,
.aigf-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.aigf-field input:focus,
.aigf-field textarea:focus,
.aigf-field select:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.1);
}

.aigf-field .description {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* Auth Section for Guest Users */
.aigf-auth-section {
    background: #f8f9fa;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.aigf-auth-section h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.aigf-auth-subtitle {
    margin: 0 0 20px 0;
    color: #6c757d;
    font-size: 14px;
}

.aigf-notice {
    padding: 12px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
    margin-bottom: 20px;
}

/* ==========================================================================
   Form Styles
   ========================================================================== */

.aigf-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.aigf-form-progress {
    margin-bottom: 30px;
}

.aigf-progress-bar {
    height: 4px;
    background-color: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 10px;
}

.aigf-progress-fill {
    height: 100%;
    background-color: #e91e63;
    transition: width 0.3s ease;
}

.aigf-progress-steps {
    display: flex;
    justify-content: space-between;
}

.aigf-progress-steps span {
    font-size: 12px;
    color: #999;
    transition: color 0.2s ease;
}

.aigf-progress-steps span.active {
    color: #e91e63;
    font-weight: 500;
}

.aigf-form-step {
    display: none;
}

.aigf-form-step.active {
    display: block;
}

.aigf-form-step h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.aigf-age-range {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aigf-age-range input[type="range"] {
    width: 100%;
}

.aigf-age-display {
    text-align: center;
    font-weight: 500;
    color: #e91e63;
}

.aigf-vibe-slider {
    position: relative;
}

.aigf-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    color: #666;
}

.aigf-traits-grid,
.aigf-interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.aigf-trait-chip,
.aigf-interest-chip {
    display: block;
    position: relative;
    cursor: pointer;
}

.aigf-trait-chip input,
.aigf-interest-chip input {
    position: absolute;
    opacity: 0;
}

.aigf-trait-chip span,
.aigf-interest-chip span {
    display: block;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    text-align: center;
    font-size: 13px;
    transition: all 0.2s ease;
}

.aigf-trait-chip input:checked + span,
.aigf-interest-chip input:checked + span {
    background-color: #e91e63;
    border-color: #e91e63;
    color: white;
}

.aigf-boundaries {
    margin-top: 10px;
}

.aigf-boundary-option {
    display: block;
    cursor: pointer;
    margin-bottom: 10px;
}

.aigf-boundary-option input {
    position: absolute;
    opacity: 0;
}

.aigf-boundary-card {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.aigf-boundary-option input:checked + .aigf-boundary-card {
    border-color: #e91e63;
    background-color: #fce4ec;
}

.aigf-boundary-card h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.aigf-boundary-card p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.aigf-form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.aigf-form-result {
    text-align: center;
    padding: 40px 20px;
}

.aigf-success-message h3 {
    color: #28a745;
    margin-bottom: 10px;
}

.aigf-next-steps {
    margin-top: 30px;
}

/* Image Wizard Styles */
.aigf-image-prompt {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e3e6ea;
}

.aigf-image-prompt h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.aigf-prompt-subtitle {
    margin: 0 0 20px 0;
    color: #6c757d;
    font-size: 14px;
}

/* Image Prompt Input Styles */
.aigf-image-prompt-section {
    margin: 15px 0;
}

.aigf-image-prompt-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 15px;
}

#aigf-image-prompt {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
    line-height: 1.4;
}

#aigf-image-prompt:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(155, 93, 229, 0.1);
}

#aigf-image-prompt::placeholder {
    color: #999;
    opacity: 1;
}

.aigf-image-prompt-section small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
    line-height: 1.3;
}

.aigf-prompt-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.aigf-image-wizard {
    text-align: center;
    padding: 30px 20px;
}

.aigf-wizard-header h3 {
    color: #333;
    margin-bottom: 8px;
    font-size: 24px;
}

.aigf-wizard-header p {
    color: #6c757d;
    margin-bottom: 30px;
}

.aigf-wizard-loading {
    padding: 40px 20px;
}

.aigf-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.aigf-image-option {
    position: relative;
    border: 3px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.aigf-image-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.aigf-image-option.selected {
    border-color: #e91e63;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.3);
}

.aigf-image-option img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.aigf-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.aigf-image-option:hover .aigf-image-overlay {
    opacity: 1;
}

.aigf-image-option.selected .aigf-image-overlay {
    opacity: 1;
    background: rgba(233, 30, 99, 0.8);
}

.aigf-image-overlay .aigf-select-icon {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.aigf-wizard-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.aigf-wizard-complete {
    padding: 40px 20px;
}

.aigf-complete-header {
    margin-bottom: 30px;
}

.aigf-complete-header h3 {
    color: #28a745;
    margin-bottom: 10px;
    font-size: 24px;
}

.aigf-final-actions .aigf-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.aigf-regenerate-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #856404;
    font-size: 14px;
}

/* ==========================================================================
   Image Gallery Styles
   ========================================================================== */

.aigf-image-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.aigf-image-header {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    flex-direction: column;
}

.aigf-image-header h3 {
    margin: 0;
    color: #333;
}

.aigf-image-stats {
    font-size: 14px;
    color: #666;
}

.aigf-base-image-section {
    margin-bottom: 40px;
}

.aigf-base-image-section h4 {
    margin-bottom: 15px;
    color: #333;
}

.aigf-base-image-card {
    display: inline-block;
    max-width: 300px;
}

.aigf-no-base-image {
    text-align: center;
    padding: 40px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    color: #666;
}

.aigf-placeholder-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ccc;
}

.aigf-variations-section {
    margin-bottom: 40px;
}

.aigf-variations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.aigf-variations-header h4 {
    margin: 0;
    color: #333;
}

.aigf-image-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.aigf-image-card,
.aigf-base-image-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* OPTIMIZED: WordPress responsive image support */
.aigf-image-card img,
.aigf-gallery-image,
.aigf-basic-gallery-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.aigf-image-card:hover img,
.aigf-image-card:hover .aigf-gallery-image,
.aigf-image-card:hover .aigf-basic-gallery-image {
    transform: scale(1.02);
}

.aigf-image-card:hover,
.aigf-base-image-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.aigf-image-wrapper {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.aigf-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aigf-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.aigf-image-wrapper:hover .aigf-image-overlay {
    opacity: 1;
}

.aigf-image-info {
    padding: 12px;
}

.aigf-image-label {
    margin: 0 0 5px 0;
    font-weight: 500;
    color: #333;
}

.aigf-image-date {
    margin: 0;
    font-size: 12px;
    color: #999;
}

.aigf-no-variations {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* ==========================================================================
   Modal Styles
   ========================================================================== */

.aigf-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.aigf-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.aigf-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    min-width: 500px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.aigf-image-viewer-content {
    min-width: auto;
    max-width: 90vw;
}

.aigf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.aigf-modal-header h3 {
    margin: 0;
    color: #333;
}

.aigf-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.aigf-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.aigf-modal-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.aigf-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

.aigf-style-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.aigf-tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.aigf-tab-btn.active {
    border-bottom-color: #e91e63;
    color: #e91e63;
}

.aigf-tab-content {
    display: none;
}

.aigf-tab-content.active {
    display: block;
}

.aigf-style-presets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.aigf-style-preset {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.aigf-style-preset:hover {
    border-color: #e91e63;
}

.aigf-style-preset.selected {
    border-color: #e91e63;
    background-color: #fce4ec;
}

.aigf-preset-preview {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #e91e63, #f06292);
    border-radius: 50%;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.aigf-preset-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 14px;
}

.aigf-preset-info p {
    margin: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .aigf-form-container {
        margin: 10px;
        padding: 15px;
    }
    
    .aigf-traits-grid,
    .aigf-interests-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .aigf-form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .aigf-chat-container {
        height: 70vh !important;
    }
    
    .aigf-message-content {
        max-width: 85%;
    }
    
    .aigf-image-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .aigf-modal-content {
        min-width: 95vw;
        margin: 20px;
    }
    
    .aigf-style-presets {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .aigf-image-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .aigf-variations-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .aigf-chat-header {
        flex-wrap: wrap;
    }
    
    .aigf-input-area {
        flex-direction: column;
        gap: 10px;
    }
    
    .aigf-input-hints {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

/* Image Gallery Styles */
.aigf-image-section {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.aigf-image-section h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.aigf-image-intro {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
}

.aigf-image-intro h3 {
    color: #e91e63;
    margin-bottom: 10px;
}

.aigf-appearance-prefs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 15px 0;
}

.aigf-pref-tag {
    background: #e91e63;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    text-transform: capitalize;
}

.aigf-generate-btn {
    background: linear-gradient(135deg, #e91e63, #ff6b9d);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
}

.aigf-generate-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #c2185b, #e91e63);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.aigf-generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Enhanced loading states */
.aigf-form-loading {
    position: relative;
    pointer-events: none;
}

.aigf-form-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
    border-radius: inherit;
}

.aigf-form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border: 3px solid #e91e63;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    z-index: 11;
}

.aigf-btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.aigf-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

.aigf-btn-primary.loading::after {
    border-color: #ffffff;
    border-top-color: transparent;
}

.aigf-btn-secondary.loading::after {
    border-color: #666;
    border-top-color: transparent;
}

/* Step loading indicator */
.aigf-step-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 8px;
}

.aigf-step-loading .loading-content {
    text-align: center;
    color: #666;
}

.aigf-step-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e91e63;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1.2s linear infinite;
    margin: 0 auto 15px;
}

.aigf-step-loading .loading-text {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

.aigf-step-loading .loading-subtext {
    font-size: 14px;
    opacity: 0.8;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Loading animations */
.aigf-step-loading {
    animation: fadeIn 0.3s ease-in-out;
}

.aigf-loading .loading-content {
    animation: slideUp 0.4s ease-out;
}

.aigf-btn.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Success states */
.aigf-success-message {
    color: #4caf50;
    font-weight: 500;
    animation: slideUp 0.3s ease-out;
}

/* Error states */
.aigf-error-message {
    color: #f44336;
    font-weight: 500;
    animation: slideUp 0.3s ease-out;
}

.aigf-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.aigf-image-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.aigf-image-item:hover {
    transform: translateY(-5px);
}

.aigf-image-item.primary {
    border: 3px solid #e91e63;
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.3);
}

.aigf-image-wrapper {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
}

.aigf-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aigf-primary-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e91e63;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.aigf-image-actions {
    padding: 15px;
    text-align: center;
}

.aigf-btn-small {
    background: #6c757d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    margin: 2px;
    transition: background 0.3s ease;
}

.aigf-btn-small:hover {
    background: #5a6268;
}

.aigf-btn-primary {
    background: #e91e63;
}

.aigf-btn-primary:hover {
    background: #c2185b;
}

.aigf-no-images {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.aigf-no-images i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ddd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .aigf-image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .aigf-appearance-prefs {
        flex-direction: column;
        align-items: center;
    }
    
    .aigf-generate-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ==========================================================================
   Multi-Profile Styles
   ========================================================================== */

/* Authentication Banner */
.aigf-auth-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.aigf-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
}

.aigf-banner-text h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.aigf-banner-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.aigf-banner-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.aigf-banner-actions .aigf-btn {
    margin: 0;
}

/* Profile Headers */
.aigf-profiles-header {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.aigf-profile-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.aigf-counter-text {
    font-weight: 600;
    color: #495057;
}

.aigf-manage-link {
    color: #e91e63;
    text-decoration: none;
    font-size: 14px;
}

.aigf-manage-link:hover {
    text-decoration: underline;
}

.aigf-limit-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 10px;
    margin: 0;
}

.aigf-limit-notice p {
    margin: 0;
    color: #856404;
    font-size: 14px;
}

.aigf-edit-header {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.aigf-edit-header h2 {
    margin: 0 0 10px 0;
    color: #1976d2;
    font-size: 20px;
}

.aigf-back-link {
    color: #1976d2;
    text-decoration: none;
    font-size: 14px;
}

.aigf-back-link:hover {
    text-decoration: underline;
}

/* Enhanced Success Message */
.aigf-success-header {
    text-align: center;
    margin-bottom: 30px;
}

.aigf-success-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.aigf-success-header h3 {
    margin: 0 0 10px 0;
    color: #28a745;
    font-size: 24px;
}

.aigf-success-header p {
    margin: 0;
    color: #6c757d;
}

/* Modern Success Card Styles */
.aigf-success-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 20px;
}

.aigf-success-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(233, 30, 99, 0.15);
    max-width: 600px;
    width: 100%;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(233, 30, 99, 0.1);
}

.aigf-success-card .aigf-success-header {
    margin-bottom: 35px;
}

.aigf-success-card .aigf-success-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: celebration 2s ease-in-out;
}

.aigf-success-card h2 {
    color: #e91e63;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.aigf-success-card .aigf-success-header p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.aigf-success-profile {
    background: linear-gradient(135deg, #f8f9ff 0%, #fff0f5 100%);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.aigf-profile-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: left;
}

.aigf-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    flex-shrink: 0;
}

.aigf-profile-details h3 {
    color: #333;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.aigf-profile-status {
    color: #28a745;
    font-weight: 500;
    margin: 0 0 4px 0;
}

.aigf-account-status {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.aigf-success-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 35px 0;
}

.aigf-success-actions .aigf-btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.aigf-chat-btn {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.aigf-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
    color: white;
}

.aigf-image-btn {
    border: 2px solid #e91e63;
    color: #e91e63;
    background: white;
}

.aigf-image-btn:hover {
    background: #e91e63;
    color: white;
    transform: translateY(-2px);
}

.aigf-image-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.aigf-success-footer {
    margin-top: 35px;
    text-align: left;
}

.aigf-next-steps h4 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-align: center;
}

.aigf-next-steps ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aigf-next-steps li {
    padding: 10px 0;
    color: #666;
    font-size: 15px;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.aigf-next-steps li::before {
    content: attr(data-icon);
    flex-shrink: 0;
}

/* Spinner Animation */
.aigf-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
}

/* Celebration Animation */
@keyframes celebration {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    50% { transform: scale(1.2) rotate(5deg); }
    75% { transform: scale(1.1) rotate(-3deg); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .aigf-success-card {
        padding: 25px;
        margin: 10px;
    }
    
    .aigf-success-card h2 {
        font-size: 24px;
    }
    
    .aigf-profile-info {
        flex-direction: column;
        text-align: center;
    }
    
    .aigf-profile-avatar {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .aigf-success-actions .aigf-btn-lg {
        padding: 14px 24px;
        font-size: 15px;
    }
}

.aigf-primary-action {
    text-align: center;
    margin-bottom: 30px;
}

.aigf-primary-action .description {
    margin-top: 10px;
    color: #6c757d;
    font-size: 14px;
}

.aigf-secondary-actions {
    display: none; /* Initially hidden */
}

.aigf-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.aigf-guest-upgrade-prompt {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.aigf-upgrade-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.aigf-upgrade-card h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
}

.aigf-upgrade-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
}

.aigf-upgrade-card li {
    padding: 5px 0;
    font-size: 14px;
}

/* Responsive adjustments for multi-profile */
@media (max-width: 768px) {
    .aigf-banner-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .aigf-banner-actions {
        justify-content: center;
    }
    
    .aigf-profile-counter {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .aigf-action-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Chat Image Sharing Styles
   ========================================================================== */

.aigf-chat-image {
    margin: 15px 0;
    text-align: center;
    background: linear-gradient(135deg, #fce4ec, #f8bbd9);
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.1);
    transition: transform 0.3s ease;
}

.aigf-chat-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.15);
}

.aigf-chat-image img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aigf-chat-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.aigf-chat-image small {
    display: block;
    margin-top: 10px;
    color: #888;
    font-style: italic;
    font-size: 12px;
}

/* Message content with images */
.aigf-message-content .aigf-chat-image {
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.9);
}

.aigf-message.aigf-message-assistant .aigf-chat-image {
    margin-left: 0;
    margin-right: auto;
}

/* Image sharing upgrade prompts */
.aigf-image-upgrade-prompt {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 15px;
    border-radius: 12px;
    margin: 10px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.aigf-image-upgrade-prompt a {
    color: white;
    text-decoration: underline;
    font-weight: bold;
}

.aigf-image-upgrade-prompt a:hover {
    color: #fff;
    text-decoration: none;
}

/* Mobile responsive for chat images */
@media (max-width: 768px) {
    .aigf-chat-image img {
        max-width: 250px;
    }
    
    .aigf-chat-image {
        margin: 10px 0;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .aigf-chat-image img {
        max-width: 200px;
    }
}

/* ==========================================================================
   Subscription Plans in Form
   ========================================================================== */

/* ==========================================================================
   Image Gallery Interface - Using Dashboard Color Palette
   ========================================================================== */

.aigf-image-interface {
    max-width: 1200px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-1);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(155, 93, 229, 0.3);
    border: 1px solid var(--glass-border);
}



.aigf-profile-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.aigf-profile-tab {
    background: var(--bg-2);
    border: 2px solid var(--primary1);
    border-radius: 25px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.aigf-profile-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.aigf-profile-tab:hover {
    background: var(--primary1);
    color: var(--text);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.4);
}

.aigf-profile-tab:hover::before {
    left: 100%;
}

.aigf-profile-tab.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-color: var(--neon);
    color: var(--text-light1);
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(155, 93, 229, 0.5);
}

/* Image Header */
.aigf-image-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--text-light1);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(155, 93, 229, 0.4);
}

.aigf-image-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.aigf-image-header h3 {
    margin: 0 0 12px 0;
    font-size: 28px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.aigf-image-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Generation Section */
.aigf-generate-section {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

.aigf-generate-section h4 {
    margin: 0 0 16px 0;
    color: var(--text);
    font-size: 20px;
    font-weight: 600;
}

.aigf-appearance-preview {
    background: linear-gradient(135deg, var(--primary1) 0%, var(--secondary1) 100%);
    border: 1px solid var(--accent1);
    color: var(--text);
    padding: 16px;
    border-radius: 12px;
    margin: 16px 0;
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
}

.aigf-appearance-preview strong {
    color: var(--text-light1);
}

/* Generate Buttons */
.aigf-generate-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--neon) 100%);
    color: var(--text-light1);
    border: none;
    padding: 16px 32px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(155, 93, 229, 0.4);
}

.aigf-generate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.aigf-generate-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(155, 93, 229, 0.6);
}

.aigf-generate-btn:hover:not(:disabled)::before {
    left: 100%;
}

.aigf-generate-btn:disabled {
    background: var(--muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Image Gallery */
.aigf-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.aigf-image-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

.aigf-image-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(155, 93, 229, 0.4);
    border-color: var(--accent);
}

.aigf-image-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.aigf-image-card:hover img {
    transform: scale(1.05);
}

.aigf-image-card-info {
    padding: 20px;
    color: var(--text);
}

.aigf-image-card-info strong {
    color: var(--text-light1);
    font-size: 16px;
}

.aigf-image-card-info small {
    color: var(--muted);
}

.aigf-image-card-actions {
    padding: 0 20px 20px;
}

.aigf-image-card-actions button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--text-light1);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    margin-right: 12px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(155, 93, 229, 0.3);
}

.aigf-image-card-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(155, 93, 229, 0.5);
}

.aigf-image-card-actions button.secondary {
    background: linear-gradient(135deg, var(--bg-2) 0%, var(--primary1) 100%);
    color: var(--muted);
}

/* Status Messages */
.aigf-status-message {
    padding: 16px 20px;
    border-radius: 12px;
    margin: 16px 0;
    font-weight: 500;
    border: 1px solid transparent;
}

.aigf-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(22, 163, 74, 0.1) 100%);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.aigf-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.aigf-info {
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: var(--electric-blue);
    border-color: var(--glass-border);
}

/* Primary Badge */
.aigf-primary-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

/* Loading States */
.aigf-loading {
    text-align: center;
    padding: 32px;
    color: var(--text);
}

.aigf-spinner {
    border: 4px solid var(--bg-2);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Images State */
.aigf-no-images {
    text-align: center;
    padding: 60px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px dashed var(--glass-border);
    border-radius: 16px;
    color: var(--muted);
    margin: 24px 0;
}

.aigf-no-images .dashicons {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: 0.6;
    color: var(--accent);
}

.aigf-no-images h4 {
    color: var(--text);
    font-size: 20px;
    margin-bottom: 12px;
}

.aigf-no-images p {
    color: var(--muted);
    margin: 8px 0;
}

.aigf-no-images small {
    color: var(--text-muted1);
    font-style: italic;
}

/* Progress Indicator */
#generation-progress {
    margin-top: 16px;
}

#generation-progress > div {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    padding: 12px;
    border-radius: 8px;
    color: var(--text-dim1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .aigf-image-interface {
        margin: 10px;
        padding: 16px;
    }
    
    .aigf-profile-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .aigf-profile-tab {
        justify-content: center;
    }
    
    .aigf-image-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .aigf-image-header {
        padding: 24px 16px;
    }
    
    .aigf-image-header h3 {
        font-size: 24px;
    }
    
    .aigf-generate-btn {
        width: 100%;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .aigf-image-card img {
        height: 250px;
    }
    
    .aigf-generate-section {
        padding: 16px;
    }
}

/* ==========================================================================
   Layout Separation Styles - Generation Section vs Gallery Section
   ========================================================================== */

.aigf-generation-section {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.aigf-generation-card {
    padding: 24px;
    text-align: center;
}

.aigf-generation-card h3 {
    margin: 0 0 16px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.aigf-generation-card p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.aigf-generation-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.aigf-gallery-section {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.aigf-gallery-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 24px;
    text-align: center;
}

.aigf-gallery-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.aigf-gallery-header p {
    margin: 8px 0 0 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Responsive adjustments for separated layout */
@media (max-width: 768px) {
    .aigf-generation-section,
    .aigf-gallery-section {
        margin-left: -16px;
        margin-right: -16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .aigf-generation-card {
        padding: 20px 16px;
    }
    
    .aigf-gallery-header {
        padding: 16px;
    }
    
    .aigf-generation-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .aigf-generation-buttons .aigf-btn {
        width: 100%;
        margin-bottom: 8px;
    }
}
