/* =====================================================
   IDEAL TYPE GENERATOR STYLES - LoveSwitch
   이상형 AI 생성 페이지 전용 스타일
   ===================================================== */

/* =====================================================
   HERO SECTION
   ===================================================== */
.ideal-hero {
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ideal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.ideal-hero .container {
    position: relative;
    z-index: 1;
}

.ideal-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 30px;
    color: #a855f7;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.ideal-hero .hero-badge i {
    width: 16px;
    height: 16px;
}

.ideal-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.ideal-hero .hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 48px;
}

/* Hero Samples */
.hero-samples {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.sample-image {
    width: 120px;
    height: 150px;
    border-radius: 16px;
    overflow: hidden;
    transform: rotate(-5deg);
    transition: all 0.3s ease;
}

.sample-image:nth-child(3) {
    transform: rotate(5deg);
}

.sample-image.featured {
    width: 150px;
    height: 180px;
    transform: rotate(0) scale(1.1);
    z-index: 2;
}

.sample-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(244, 63, 94, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
}

.sample-placeholder i {
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.5);
}

.sample-image.featured .sample-placeholder i {
    width: 50px;
    height: 50px;
    color: rgba(255, 255, 255, 0.7);
}

/* =====================================================
   LOGIN REQUIRED
   ===================================================== */
.login-required-section {
    padding: 40px 0 80px;
}

.login-required-card {
    max-width: 500px;
    margin: 0 auto;
    padding: 60px 40px;
    text-align: center;
}

.lock-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.lock-icon i {
    width: 36px;
    height: 36px;
    color: #a855f7;
}

.login-required-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.login-required-card > p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.login-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.login-buttons .btn {
    min-width: 140px;
}

/* =====================================================
   GENERATOR SECTION
   ===================================================== */
.generator-section {
    padding: 0 0 80px;
}

.generator-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    align-items: start;
}

/* Options Panel */
.options-panel {
    padding: 32px;
}

.options-panel > h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.options-hint {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Option Group */
.option-group {
    margin-bottom: 28px;
}

.option-group h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.option-group h3 i {
    width: 18px;
    height: 18px;
    color: #a855f7;
}

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-btn {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(168, 85, 247, 0.5);
}

.option-btn.selected {
    background: rgba(168, 85, 247, 0.15);
    border-color: #a855f7;
    color: #a855f7;
}

/* Color Options */
.color-options .option-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Multi Select */
.multi-select .option-btn.selected {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    color: #10b981;
}

/* Generate Action */
.generate-action {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.generate-action .btn-lg {
    padding: 16px 48px;
    font-size: 1.0625rem;
    background: linear-gradient(135deg, #a855f7, var(--primary-color));
}

.generate-action .btn-lg:hover {
    background: linear-gradient(135deg, #9333ea, #e11d48);
}

.generate-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.generate-hint i {
    width: 14px;
    height: 14px;
    color: #fbbf24;
}

#remaining-count {
    color: #fbbf24;
    font-weight: 600;
}

/* Preview Panel */
.preview-panel {
    position: sticky;
    top: 100px;
}

.preview-card {
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
}

.preview-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.preview-placeholder i {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.preview-placeholder p {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.preview-image {
    width: 100%;
    height: 100%;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Selected Summary */
.selected-summary {
    padding: 20px;
}

.selected-summary h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.summary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.summary-tag {
    padding: 6px 12px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 16px;
    font-size: 0.75rem;
    color: #a855f7;
}

/* =====================================================
   GENERATING SECTION
   ===================================================== */
.generating-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.generating-card {
    max-width: 450px;
    margin: 0 auto;
    padding: 60px 40px;
    text-align: center;
}

/* Magic Circle Animation */
.generating-animation {
    margin-bottom: 32px;
}

.magic-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.magic-circle > i {
    width: 40px;
    height: 40px;
    color: #a855f7;
    position: relative;
    z-index: 2;
    animation: wandFloat 2s ease-in-out infinite;
}

@keyframes wandFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(10deg);
    }
}

.circle-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(168, 85, 247, 0.5);
    border-radius: 50%;
    animation: ringPulse 2s ease-out infinite;
}

.circle-ring.delay-1 {
    animation-delay: 0.5s;
}

.circle-ring.delay-2 {
    animation-delay: 1s;
}

@keyframes ringPulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.generating-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.generating-card > p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.generating-progress {
    display: flex;
    align-items: center;
    gap: 16px;
}

.generating-progress .progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.generating-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #a855f7, var(--primary-color));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-percent {
    font-size: 0.875rem;
    font-weight: 600;
    color: #a855f7;
    min-width: 40px;
}

/* =====================================================
   RESULT SECTION
   ===================================================== */
.result-section {
    padding: 80px 0;
}

.result-header {
    text-align: center;
    margin-bottom: 48px;
}

.result-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #a855f7;
    margin-bottom: 16px;
}

.result-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Result Content */
.result-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.result-image-card {
    padding: 20px;
}

.result-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.result-image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.result-actions-inline {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn i {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.action-btn:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: #a855f7;
}

.action-btn:hover i {
    color: #a855f7;
}

.action-btn.active {
    background: rgba(244, 63, 94, 0.1);
    border-color: var(--primary-color);
}

.action-btn.active i {
    color: var(--primary-color);
    fill: var(--primary-color);
}

/* Result Details */
.result-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-card {
    padding: 24px;
}

.detail-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    min-width: 60px;
}

.feature-value {
    font-size: 0.875rem;
    color: var(--text-primary);
}

.style-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.style-tag {
    padding: 8px 16px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    font-size: 0.8125rem;
    color: #a855f7;
}

.personality-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Result Actions */
.result-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

/* Gallery Section */
.gallery-section {
    padding: 32px;
}

.gallery-section h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.gallery-section h3 i {
    width: 20px;
    height: 20px;
    color: #a855f7;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-empty {
    grid-column: span 4;
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
    padding: 0 0 100px;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 48px;
    text-align: center;
}

.cta-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1200px) {
    .generator-container {
        grid-template-columns: 1fr 350px;
    }
    
    .result-content {
        grid-template-columns: 350px 1fr;
    }
}

@media (max-width: 992px) {
    .generator-container {
        grid-template-columns: 1fr;
    }
    
    .preview-panel {
        position: static;
        order: -1;
    }
    
    .preview-card {
        max-width: 350px;
        margin: 0 auto 20px;
    }
    
    .result-content {
        grid-template-columns: 1fr;
    }
    
    .result-image-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-empty {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .ideal-hero {
        padding: 120px 0 40px;
    }
    
    .ideal-hero h1 {
        font-size: 2.5rem;
    }
    
    .ideal-hero .hero-description {
        font-size: 1rem;
    }
    
    .ideal-hero .hero-description br {
        display: none;
    }
    
    .hero-samples {
        gap: 12px;
    }
    
    .sample-image {
        width: 80px;
        height: 100px;
    }
    
    .sample-image.featured {
        width: 100px;
        height: 120px;
    }
    
    .login-required-card {
        padding: 40px 24px;
    }
    
    .login-buttons {
        flex-direction: column;
    }
    
    .login-buttons .btn {
        width: 100%;
    }
    
    .options-panel {
        padding: 24px;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .result-actions .btn {
        width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-empty {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .ideal-hero h1 {
        font-size: 2rem;
    }
    
    .option-buttons {
        gap: 8px;
    }
    
    .option-btn {
        padding: 8px 14px;
        font-size: 0.8125rem;
    }
    
    .generating-card {
        padding: 40px 24px;
    }
    
    .cta-content {
        padding: 32px 20px;
    }
}
