@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #00f2ff;
    --primary-dim: rgba(0, 242, 255, 0.1);
    --secondary: #7000ff;
    --bg-dark: #050505;
    --card-bg: rgba(20, 20, 20, 0.6);
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #888888;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(112, 0, 255, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 242, 255, 0.15) 0%, transparent 25%);
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Layout Wrapper */
.app-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.logo { display: flex; align-items: center; gap: 15px; font-size: 1.5rem; }
.logo i { color: var(--primary); font-size: 1.8rem; }
.logo h1 { font-weight: 700; letter-spacing: 1px; font-size: 1.8rem; }
.highlight { color: var(--primary); }

.creator-badge {
    background: linear-gradient(90deg, var(--secondary), transparent);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--border);
}

/* Grid Layout for Desktop */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 40px;
    flex: 1;
    align-items: start;
}

@media (max-width: 900px) {
    .grid-layout { grid-template-columns: 1fr; } /* Mobile View */
}

/* Glass Panel Style */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* Upload Area */
.upload-area {
    border: 2px dashed #333;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
    background: rgba(0,0,0,0.2);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.upload-area:hover { border-color: var(--primary); background: var(--primary-dim); }
.icon-circle {
    width: 60px; height: 60px; background: #222; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 15px; font-size: 1.5rem; color: var(--primary);
}
.upload-label h3 { margin-bottom: 5px; }
.upload-label p { color: var(--text-muted); font-size: 0.9rem; }

#previewContainer img {
    max-width: 100%; border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    max-height: 400px;
}

/* Controls */
.controls-area { margin-top: 25px; }
.input-group {
    display: flex; align-items: center; gap: 15px;
    background: #111; border: 1px solid #333;
    padding: 15px 20px; border-radius: 12px;
    margin-bottom: 15px; transition: 0.3s;
}
.input-group:focus-within { border-color: var(--secondary); box-shadow: 0 0 15px rgba(112, 0, 255, 0.2); }
.input-group i { color: var(--text-muted); }
.input-group input {
    background: transparent; border: none; color: #fff;
    width: 100%; font-size: 1rem; outline: none; font-family: 'Outfit', sans-serif;
}

#generateBtn {
    width: 100%; padding: 18px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none; border-radius: 12px;
    color: #fff; font-weight: 700; font-size: 1.1rem;
    cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px;
    transition: 0.3s;
}
#generateBtn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(112, 0, 255, 0.4); }
#generateBtn:disabled { opacity: 0.6; cursor: wait; }

/* Info Section (Right Side) */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.info-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    padding: 25px; border-radius: 16px;
    transition: 0.3s;
}
.info-card:hover { background: rgba(255,255,255,0.05); transform: translateX(5px); border-color: var(--primary); }
.info-card i { font-size: 1.5rem; color: var(--primary); margin-bottom: 15px; }
.info-card h4 { margin-bottom: 10px; font-size: 1.1rem; }
.info-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }

/* Result Card */
.result-card {
    background: var(--card-bg);
    border: 1px solid var(--primary);
    border-radius: 24px;
    padding: 20px;
    animation: fadeIn 0.8s ease;
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.1);
}
.card-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
}
.badge { background: #00ff88; color: #000; padding: 4px 12px; border-radius: 20px; font-weight: bold; font-size: 0.8rem; }
.image-frame {
    border-radius: 12px; overflow: hidden;
    border: 2px solid #222; margin-bottom: 20px;
}
.image-frame img { width: 100%; display: block; }

.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.action-btn {
    padding: 12px; border-radius: 10px; text-align: center; text-decoration: none;
    font-weight: 600; display: flex; justify-content: center; gap: 8px; align-items: center;
    transition: 0.3s; cursor: pointer; border: none; font-family: 'Outfit', sans-serif;
}
.action-btn.download { background: var(--primary); color: #000; }
.action-btn.download:hover { background: #fff; }
.action-btn.reset { background: #222; color: #fff; border: 1px solid #444; }
.action-btn.reset:hover { border-color: #fff; }

.watermark { margin-top: 15px; text-align: center; font-size: 0.7rem; color: #444; letter-spacing: 2px; text-transform: uppercase; }

/* Loader */
.loader-container { display: none; margin-top: 20px; text-align: center; }
.scanner-line {
    height: 3px; width: 100%; background: #333; position: relative; overflow: hidden; border-radius: 2px;
}
.scanner-line::after {
    content: ''; position: absolute; top: 0; left: -50%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: scan 1.5s infinite linear;
}
.loading-text { margin-top: 10px; font-size: 0.9rem; color: var(--primary); display: flex; justify-content: center; gap: 2px; }
@keyframes scan { 0% { left: -50%; } 100% { left: 100%; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Footer */
.main-footer { margin-top: 40px; text-align: center; border-top: 1px solid var(--border); padding-top: 30px; }
.social-links { display: flex; justify-content: center; gap: 15px; margin-bottom: 15px; }
.social-btn {
    width: 45px; height: 45px; border-radius: 50%; background: #111;
    display: flex; align-items: center; justify-content: center; color: #fff;
    font-size: 1.2rem; transition: 0.3s; border: 1px solid #333;
}
.social-btn:hover { border-color: var(--primary); color: var(--primary); transform: scale(1.1); }
.main-footer p { color: var(--text-muted); font-size: 0.9rem; }

/* Modal */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); backdrop-filter: blur(15px);
    display: flex; justify-content: center; align-items: center; z-index: 999;
}
.modal-content {
    background: #111; border: 1px solid var(--primary);
    padding: 40px; border-radius: 24px; text-align: center; max-width: 450px;
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.15);
}
.channel-links { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 25px 0; }
.channel-card {
    background: #0f2e1d; color: #25d366; padding: 15px; border-radius: 12px;
    text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 10px;
    border: 1px solid #25d366; transition: 0.3s;
}
.channel-card:hover { background: #25d366; color: #000; }
#closeModalBtn {
    background: transparent; border: 1px solid #444; color: #aaa;
    padding: 10px 25px; border-radius: 30px; cursor: pointer; margin-top: 10px;
}
