/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #e6e6fa;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated Stars Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.stars::before,
.stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 
        20px 30px #fff, 40px 70px #fff, 90px 40px #fff,
        130px 80px #fff, 160px 30px #fff, 200px 90px #fff,
        240px 50px #fff, 280px 120px #fff, 320px 80px #fff,
        360px 40px #fff, 400px 110px #fff, 440px 70px #fff,
        480px 100px #fff, 520px 60px #fff, 560px 140px #fff,
        600px 90px #fff, 640px 20px #fff, 680px 130px #fff,
        720px 80px #fff, 760px 50px #fff, 800px 120px #fff,
        840px 70px #fff, 880px 40px #fff, 920px 110px #fff;
    animation: sparkle 3s linear infinite;
}

.stars::after {
    animation-delay: 1.5s;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 0;
}

.title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 600;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffc107);
    -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.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 30px rgba(255, 215, 0, 0.3); }
    to { text-shadow: 0 0 40px rgba(255, 215, 0, 0.6); }
}

.subtitle {
    font-size: 1.2rem;
    color: #b8b8d4;
    font-weight: 300;
    letter-spacing: 1px;
}

/* API Status */
.api-status {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin: 1.5rem 0;
    backdrop-filter: blur(10px);
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.status-label {
    color: #e0d4f7;
    font-weight: 500;
}

.status-indicator {
    color: #fff;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

.status-indicator.ready {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.status-indicator.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.status-indicator.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Generator Section */
.generator-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.input-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.label {
    display: block;
    font-weight: 500;
    margin-bottom: 12px;
    color: #ffd700;
    font-size: 1.1rem;
}

.prompt-input {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #e6e6fa;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: all 0.3s ease;
}

.prompt-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.prompt-input::placeholder {
    color: #9999b3;
}

/* Style selector removed - allowing custom tarot styles */

/* Generate Button */
.generate-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffc107);
    color: #1a1a2e;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 25px;
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.generate-btn:active {
    transform: translateY(-1px);
}

.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #1a1a2e;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Result Container */
.result-container {
    position: relative;
}

.placeholder-card {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.card-back {
    width: 280px;
    height: 400px;
    background: linear-gradient(135deg, #2d2d5f, #1a1a2e);
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.card-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.card-back p {
    color: #b8b8d4;
    text-align: center;
    font-style: italic;
    z-index: 1;
}

/* Card Display */
.card-display {
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-frame {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.tarot-card {
    max-width: 280px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid #ffd700;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #ffd700;
    padding: 20px;
    border-radius: 0 0 12px 12px;
}

.card-name {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.card-interpretation {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
}

.card-interpretation h4 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.card-meaning {
    line-height: 1.6;
    margin-bottom: 25px;
    color: #e6e6fa;
}

.card-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 10px 20px;
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffd700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

/* Features Section */
.features-section {
    margin: 80px 0;
    text-align: center;
}

.features-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: #b8b8d4;
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    text-align: center;
    margin: 80px 0;
}

.how-it-works h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 50px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.step {
    position: relative;
    padding: 30px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1a1a2e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 20px;
}

.step h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.step p {
    color: #b8b8d4;
    line-height: 1.6;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    margin-top: 80px;
}

.footer p {
    color: #9999b3;
    margin: 5px 0;
}

/* Error Message */
.error-message {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: #ff6b6b;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .generator-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Style options removed */
    
    .card-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .input-container {
        padding: 20px;
    }
    
    .tarot-card {
        max-width: 240px;
    }
}

/* Inspiration Section */
.inspiration-section {
    margin: 25px 0;
}

.inspiration-btn {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    color: #ffd700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.inspiration-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-1px);
}

.inspiration-examples {
    margin-top: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.inspiration-examples p {
    color: #ffd700;
    margin-bottom: 15px;
    font-weight: 500;
}

.example-prompts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.example-btn {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    color: #b8b8d4;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.4;
}

.example-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    transform: translateX(5px);
}

/* Examples Gallery */
.examples-gallery {
    margin: 80px 0;
    text-align: center;
}

.examples-gallery h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 25px;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gallery-item::before {
    content: '✨';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0.6;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.4);
}

.gallery-item h4 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.gallery-item p {
    color: #b8b8d4;
    line-height: 1.6;
    font-style: italic;
    border-left: 3px solid rgba(255, 215, 0, 0.3);
    padding-left: 15px;
}

/* Update card-details class name */
.card-details {
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    margin-top: 20px;
}

.card-details h4 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-family: 'Cinzel', serif;
}

.card-description {
    color: #b8b8d4;
    line-height: 1.6;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border-left: 4px solid rgba(255, 215, 0, 0.3);
}

/* Social media sharing */
.social-share {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 215, 0, 0.2);
}

.social-share h5 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-align: center;
    font-family: 'Cinzel', serif;
}

.social-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.social-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 215, 0, 0.3);
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    backdrop-filter: blur(10px);
}

.social-btn:hover {
    transform: translateY(-2px);
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.social-btn.facebook:hover {
    border-color: #3b5998;
    background: rgba(59, 89, 152, 0.2);
    color: #87ceeb;
}

.social-btn.instagram:hover {
    border-color: #e1306c;
    background: rgba(225, 48, 108, 0.2);
    color: #ff69b4;
}

.social-btn.twitter:hover {
    border-color: #1da1f2;
    background: rgba(29, 161, 242, 0.2);
    color: #87ceeb;
}

.social-btn.reddit:hover {
    border-color: #ff4500;
    background: rgba(255, 69, 0, 0.2);
    color: #ff6347;
}

.social-btn.pinterest:hover {
    border-color: #bd081c;
    background: rgba(189, 8, 28, 0.2);
    color: #ff1493;
}

/* Mobile responsive for social buttons */
@media (max-width: 768px) {
    .social-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .social-btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .social-buttons {
        grid-template-columns: 1fr;
        max-width: 280px;
    }
} 
