/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.5rem;
    color: #00d4ff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00d4ff, #ff6b6b, #4ecdc4);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.subtitle {
    font-size: 1.1rem;
    color: #b0b0b0;
    font-weight: 300;
}

/* Section Styles */
.section {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.section:hover {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.section-header i {
    color: #00d4ff;
    font-size: 1.3rem;
}

.section-header h2 {
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0;
}

.section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section h2 i {
    color: #00d4ff;
    font-size: 1.3rem;
}

/* Form Elements */
.api-input-container {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.api-input {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.api-input-field {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.api-input-field:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    background: rgba(255,255,255,0.08);
}

.api-input-field::placeholder {
    color: #888;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.btn-generate {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    font-size: 1.2rem;
    padding: 15px 30px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-danger {
    background: linear-gradient(45deg, #ff4757, #c44569);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

/* Model Selection */
.model-selection {
    margin-bottom: 20px;
}

.model-selection label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #ffffff;
}

.model-dropdown {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.model-dropdown:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.model-dropdown option {
    background: #1a1a1a;
    color: #ffffff;
}

.model-info {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    border-left: 4px solid #00d4ff;
}

.model-info p {
    margin-bottom: 8px;
    color: #e0e0e0;
}

/* Styles Grid */
.styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.style-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.style-card::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;
}

.style-card:hover::before {
    left: 100%;
}

.style-card:hover {
    border-color: #00d4ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.style-card.selected {
    border-color: #00d4ff;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.style-card.selected::after {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #00d4ff;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.style-card i {
    font-size: 2rem;
    color: #00d4ff;
    margin-bottom: 15px;
    display: block;
}

.style-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.style-card p {
    color: #b0b0b0;
    font-size: 0.9rem;
}

/* Character Reference */
.character-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #b0b0b0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: white;
    border-color: #00d4ff;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.character-textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    color: #ffffff;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
}

.character-textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.character-textarea::placeholder {
    color: #888;
}

/* Upload Area */
.upload-area {
    border: 2px dashed rgba(255,255,255,0.3);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.02);
}

.upload-area:hover {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.05);
}

.upload-area i {
    font-size: 3rem;
    color: #00d4ff;
    margin-bottom: 15px;
    display: block;
}

.upload-area p {
    color: #b0b0b0;
    font-size: 1.1rem;
}

.uploaded-image {
    text-align: center;
    margin-top: 20px;
}

.uploaded-image img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.1);
    margin-bottom: 15px;
}

/* Prompts */
.prompts-container {
    margin-bottom: 20px;
}

.prompts-textarea {
    width: 100%;
    min-height: 150px;
    padding: 20px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    background: rgba(255,255,255,0.05);
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    resize: vertical;
    transition: all 0.3s ease;
}

.prompts-textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.prompts-textarea::placeholder {
    color: #888;
}

.prompts-info {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.prompt-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #b0b0b0;
}

/* Progress */
.progress-container {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

#progress-text {
    text-align: center;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.progress-text {
    text-align: center;
    color: #b0b0b0;
    font-size: 0.9rem;
}

/* Results */
.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.result-item {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.result-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.result-info {
    padding: 15px;
}

.result-prompt {
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.download-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.download-info {
    margin: 8px 0;
    color: #888;
    font-size: 0.8rem;
}

/* Footer */
.footer {
    margin-top: 60px;
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.01) 100%);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px 20px 0 0;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section p {
    color: #b0b0b0;
    margin-bottom: 15px;
    line-height: 1.6;
}

.course-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.course-link:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #00d4ff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #888;
}

.footer-bottom a {
    color: #00d4ff;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Help Text */
.help-text {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-top: 10px;
}

.help-text a {
    color: #00d4ff;
    text-decoration: none;
}

.help-text a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .api-input {
        flex-direction: column;
    }
    
    .styles-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Success Animation */
@keyframes success {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.success {
    animation: success 0.5s ease-out;
} 