/* ================================
   AI Text to Image Page Styles
   Consistent with Upscale Page Design
   ================================ */

/* Hero Section */
.hero-text2img {
    padding: 3rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-text2img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(42, 219, 92, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-text2img__content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-text2img__text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(42, 219, 92, 0.1);
    border: 1px solid rgba(42, 219, 92, 0.3);
    
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-badge__icon {
    width: 16px;
    height: 16px;
}

.hero-text2img__title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-text2img__title-accent {
    display: block;
    background: linear-gradient(135deg, #3ef76e 0%, #2adb5c 50%, #1fc44f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text2img__subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat__number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.hero-stat__label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Text to Image Tool */
.text2img-tool {
    padding: 4rem 0;
    background: var(--color-bg);
    padding-top: 0;
}

.text2img-tool__container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Input Area */
.text2img-input {
    margin-bottom: 3rem;
}

.input-card {
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    background: var(--color-bg-subtle);
}

.input-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(42, 219, 92, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.input-card:hover {
    border-color: rgba(42, 219, 92, 0.3);
    box-shadow: 0 10px 30px rgba(42, 219, 92, 0.1);
}

.input-card:hover::before {
    opacity: 1;
}

.input-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.input-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.input-icon {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.input-hint {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.form-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.prompt-textarea {
    width: 100%;
    padding: 1.25rem;
    font-size: 1rem;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    resize: vertical;
    min-height: 140px;
    transition: all 0.3s ease;
    line-height: 1.6;
}

.prompt-textarea::placeholder {
    color: var(--color-text-muted);
}

.prompt-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 0 3px rgba(42, 219, 92, 0.1);
}

.char-count {
    text-align: right;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

.char-count #char-count {
    font-weight: 600;
    color: var(--color-primary);
}

/* Prompt Examples */
.prompt-examples {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(42, 219, 92, 0.03);
    border: 1px solid rgba(42, 219, 92, 0.15);
}

.examples-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 1rem 0;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.example-btn {
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1.5px solid rgba(42, 219, 92, 0.2);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.example-btn:hover {
    background: rgba(42, 219, 92, 0.1);
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(42, 219, 92, 0.15);
}

.example-btn:hover .example-icon {
    color: var(--color-primary);
    transform: scale(1.1);
}

.example-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #6b7280;
    transition: all 0.2s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn--primary {
    background: linear-gradient(135deg, #2adb5c 0%, #1fc44f 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(42, 219, 92, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 219, 92, 0.4);
}

.btn--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn--secondary {
    background: rgba(42, 219, 92, 0.1);
    color: var(--color-primary);
    border: 2px solid rgba(42, 219, 92, 0.3);
}

.btn--secondary:hover {
    background: rgba(42, 219, 92, 0.2);
    border-color: rgba(42, 219, 92, 0.5);
}

.btn.hidden {
    display: none;
}

#generate-btn {
    width: 100%;
}

/* Result Area */
.text2img-result {
    animation: fadeInUp 0.5s ease;
}

.text2img-result.hidden {
    display: none;
}

.result-container {
    margin-bottom: 2rem;
}

.result-box {
    border: 1px solid rgba(42, 219, 92, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.result-box:hover {
    border-color: rgba(42, 219, 92, 0.3);
    box-shadow: 0 8px 24px rgba(42, 219, 92, 0.1);
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #111;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.2); */
}

.result-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.result-icon {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.meta-divider {
    color: rgba(0, 0, 0, 0.3);
}

.result-image-wrapper {
    position: relative;
    padding: 2rem;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* When gallery is shown, adjust wrapper */
.result-image-wrapper:has(.results-gallery:not(.hidden)) {
    display: block;
    min-height: auto;
}

.result-image {
    max-width: 100%;
    max-height: 600px;
    height: auto;
    transition: all 0.3s ease;
    object-fit: contain;
}

.result-image:hover {
    transform: scale(1.02);
}

.result-image.hidden {
    display: none !important;
    visibility: hidden;
    position: absolute;
    width: 0;
    height: 0;
}

/* Used Prompt Display */
.used-prompt {
    padding: 1.5rem;
    background: rgba(42, 219, 92, 0.05);
    border-top: 1px solid rgba(42, 219, 92, 0.1);
}

.used-prompt-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem 0;
}

.used-prompt-text {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    gap: 1rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(42, 219, 92, 0.2);
    border-top-color: var(--color-primary);
    
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.loading-subtext {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Generation Info */
.generation-info {
    animation: fadeInUp 0.5s ease;
}

.generation-info.hidden {
    display: none;
}

.info-card {
    border: 1px solid rgba(42, 219, 92, 0.1);
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    color: var(--color-primary);
}

.info-content {
    flex: 1;
}

.info-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 1rem;
}

.info-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.info-value {
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 600;
    font-family: 'Inter', 'Courier New', monospace;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    padding-top: 0;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 3rem;
    text-align: center;
}

.features-icon {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border: 1px solid rgba(42, 219, 92, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.feature-card:hover {
    border-color: rgba(42, 219, 92, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(42, 219, 92, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 219, 92, 0.1);
    border: 2px solid rgba(42, 219, 92, 0.3);
    border-radius: 50%;
    
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.75rem;
}

.feature-description {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Notification */
#notification-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification {
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.98);
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

.notification--success {
    border-color: var(--color-primary);
}

.notification--error {
    border-color: #ef4444;
}

.notification--info {
    border-color: #3b82f6;
}

.notification__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.notification__text {
    flex: 1;
    color: var(--color-text);
    font-size: 0.9375rem;
    font-weight: 500;
}

/* ================================
   Advanced Options Styles
   ================================ */

/* Upload Zone */
.upload-zone {
    border: 2px dashed rgba(42, 219, 92, 0.3);
    padding: 2rem;
    text-align: center;
    background: rgba(42, 219, 92, 0.03);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.upload-zone:hover {
    border-color: rgba(42, 219, 92, 0.5);
    background: rgba(42, 219, 92, 0.05);
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    margin: 0 auto 1rem;
}

.upload-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.upload-formats {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* Preview Container */
.preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border: 2px solid rgba(42, 219, 92, 0.2);
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
    border-radius: 100%;
}

.preview-remove:hover {
    background: #ef4444;
    transform: scale(1.1);
}

/* Advanced Options Container */
.advanced-options {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(42, 219, 92, 0.03);
    border: 1px solid rgba(42, 219, 92, 0.15);
    position: relative;
    z-index: 1;
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.info-tooltip {
    width: 16px;
    height: 16px;
    color: var(--color-text-secondary);
    cursor: help;
}

/* Ratio Buttons */
.ratio-buttons {
    display: flex;
    gap: 0.75rem;
}

.ratio-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    background: var(--color-bg-subtle);
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    position: relative;
    z-index: 10;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
}

.ratio-btn:hover {
    border-color: rgba(42, 219, 92, 0.5);
    background: rgba(42, 219, 92, 0.05);
}

.ratio-btn--active {
    border-color: var(--color-primary);
    background: rgba(42, 219, 92, 0.1);
    color: var(--color-primary);
}

.ratio-icon {
    width: auto;
    height: 32px;
    stroke-width: 2;
}

/* Variant Buttons */
.variant-buttons {
    display: flex;
    gap: 0.75rem;
}

.variant-btn {
    flex: 1;
    padding: 1rem;
    background: var(--color-bg-subtle);
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    position: relative;
    z-index: 10;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
}

.variant-btn:hover {
    border-color: rgba(42, 219, 92, 0.5);
    background: rgba(42, 219, 92, 0.05);
}

.variant-btn--active {
    border-color: var(--color-primary);
    background: rgba(42, 219, 92, 0.1);
    color: var(--color-primary);
}

.variant-number {
    display: block;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 1);
    transition: 0.4s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: var(--color-bg-muted);
    border-radius: 50%;
    transition: 0.4s;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--color-primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(42, 219, 92, 0.2);
}

/* Responsive */
@media (max-width: 640px) {
    .ratio-buttons,
    .variant-buttons {
        gap: 0.5rem;
    }
    
    .ratio-btn,
    .variant-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
    }
    
    .ratio-icon {
        height: 24px;
    }
    
    .advanced-options {
        padding: 1rem;
    }
    
    .upload-zone {
        padding: 1.5rem 1rem;
    }
    
    .upload-icon {
        width: 40px;
        height: 40px;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-text2img__title {
        font-size: 2.5rem;
    }

    .hero-text2img__subtitle {
        font-size: 1.125rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .input-card {
        padding: 2rem 1.5rem;
    }

    .input-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .examples-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    #notification-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .notification {
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .hero-text2img {
        padding: 2rem 0 3rem;
    }

    .hero-text2img__title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .input-card {
        padding: 1.5rem 1rem;
    }

    .prompt-textarea {
        font-size: 0.9375rem;
        padding: 1rem;
    }

    .result-image-wrapper {
        padding: 1rem;
        min-height: 400px;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .capabilities-note {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Model Capabilities Card */
.model-capabilities-card {
    background: var(--color-bg-subtle);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.capabilities-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(10, 10, 10, 0.9) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease;
    user-select: none;
    display: none;
}

.capabilities-header:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(15, 15, 15, 0.95) 100%);
}

.capabilities-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: #4ade80;
}

.capabilities-icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.expand-icon {
    width: 20px;
    height: 20px;
    color: #166534;
    transition: transform 0.3s ease;
}

.model-capabilities-card.expanded .expand-icon {
    transform: rotate(180deg);
}

.capabilities-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.model-capabilities-card.expanded .capabilities-content {
    max-height: 1000px;
    padding: 2rem 1.5rem;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.capability-section {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 2px solid;
}

.capability-section.can-do {
    border-color: rgba(34, 197, 94, 0.3);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(10, 10, 10, 0.8) 100%);
}

.capability-section.cannot-do {
    border-color: rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(10, 10, 10, 0.8) 100%);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.can-do .section-title {
    color: #4ade80;
}

.cannot-do .section-title {
    color: #f87171;
}

.section-icon {
    width: 20px;
    height: 20px;
}

.can-do .section-icon {
    color: #22c55e;
}

.cannot-do .section-icon {
    color: #ef4444;
}

.capability-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.capability-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e5e7eb;
}

.capability-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.capability-list li strong {
    color: #ffffff;
    font-weight: 600;
}

.capabilities-note {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 2px solid #666666;
    align-items: flex-start;
}

.note-icon {
    width: 24px;
    height: 24px;
    color: #d97706;
    flex-shrink: 0;
    margin-top: 2px;
}

.capabilities-note p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ffffff;
}

.capabilities-note strong {
    color: #f0f0f0;
}

.capabilities-note em {
    font-style: italic;
    color: #e0e0e0;
}

/* Results Gallery (Multiple Images) */
.results-gallery {
    width: 100%;
    padding: 0;
}

.results-gallery.hidden {
    display: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--color-bg-subtle);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(42, 219, 92, 0.2);
}

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.gallery-download-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover .gallery-download-btn {
    opacity: 1;
}

.gallery-download-btn:hover {
    background: var(--color-primary);
    transform: scale(1.1);
}

.gallery-download-btn svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.gallery-download-btn:hover svg {
    color: white;
}

.gallery-download-btn:active {
    transform: scale(0.95);
}

/* Button Loading Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Responsive Gallery */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-download-btn {
        opacity: 1;
    }
}

/* Override Pro Tip background */
.upload-hint {
    background: #1e1e1e !important;
    border-left: 3px solid #2adb5c !important;
    color: #ffffff !important;
}

