/* Premium OOTD Legend Card Generator Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --deep-black: #0a0a0a;
    --rich-black: #1a1a1a;
    --gold-primary: linear-gradient(135deg, #FFD700, #FFA500);
    --gold-secondary: linear-gradient(135deg, #FFA500, #FF8C00);
    --silver-primary: linear-gradient(135deg, #C0C0C0, #E5E5E5);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-gold: #FFD700;
    --accent-silver: #C0C0C0;
    --card-glow: rgba(255, 215, 0, 0.3);
    --shadow-intense: 0 20px 60px rgba(0, 0, 0, 0.8);
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: linear-gradient(135deg, var(--deep-black) 0%, var(--rich-black) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(192, 192, 192, 0.05));
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.title {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gold-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    letter-spacing: 2px;
}

.title i {
    margin-right: 15px;
    font-size: 3rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 1px;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

/* Upload Section */
.upload-section {
    width: 100%;
    max-width: 600px;
}

.upload-area {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(192, 192, 192, 0.02));
    border: 2px dashed rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(192, 192, 192, 0.05));
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
}

.upload-area.dragover {
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(192, 192, 192, 0.08));
}

.upload-content h3 {
    font-size: 1.8rem;
    margin: 20px 0 10px;
    color: var(--text-primary);
}

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

.upload-icon {
    font-size: 4rem;
    background: var(--gold-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.upload-btn {
    background: var(--gold-primary);
    color: var(--deep-black);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

/* Card Preview Section */
.card-preview-section {
    width: 100%;
    max-width: 800px;
    animation: fadeInUp 0.8s ease;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    background: var(--gold-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title i {
    margin-right: 10px;
}

/* Legend Card Styles */
.card-container {
    perspective: 1000px;
    margin-bottom: 40px;
}

.legend-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.legend-card:hover {
    transform: rotateY(5deg) rotateX(-5deg);
}

.card-border {
    background: linear-gradient(135deg, var(--deep-black), var(--rich-black));
    border-radius: 20px;
    padding: 4px;
    position: relative;
    box-shadow: var(--shadow-intense);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.card-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gold-primary);
    border-radius: 20px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(192, 192, 192, 0.05));
    border-radius: 16px 16px 0 0;
}

.rarity-badge {
    background: var(--gold-primary);
    color: var(--deep-black);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-stats {
    display: flex;
    gap: 15px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-gold);
}

.stat i {
    font-size: 1rem;
}

.card-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 0 0 16px 16px;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.legend-card:hover .card-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(192, 192, 192, 0.05));
    pointer-events: none;
}

.card-info {
    padding: 25px 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(192, 192, 192, 0.02));
}

.card-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--gold-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(192, 192, 192, 0.1));
    color: var(--accent-gold);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.card-footer {
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(192, 192, 192, 0.05));
    border-radius: 0 0 16px 16px;
}

.power-bar {
    position: relative;
    height: 8px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.power-fill {
    height: 100%;
    background: var(--gold-primary);
    border-radius: 4px;
    width: 95%;
    animation: powerPulse 2s ease-in-out infinite;
}

@keyframes powerPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.power-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 2px;
}

.card-id {
    text-align: right;
    font-size: 0.9rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-top: 10px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-tertiary {
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary {
    background: var(--gold-primary);
    color: var(--deep-black);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: var(--deep-black);
    transform: translateY(-2px);
}

.btn-tertiary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--text-secondary);
}

.btn-tertiary:hover {
    background: var(--text-secondary);
    color: var(--deep-black);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    color: var(--text-secondary);
}

.footer i {
    color: var(--accent-gold);
    margin: 0 5px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary, .btn-tertiary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .card-header {
        padding: 12px 15px;
    }
    
    .card-info {
        padding: 20px 15px;
    }
    
    .card-footer {
        padding: 15px;
    }
}
