/* assets/css/instagram-bio.css */

:root {
    --ig-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    --bg-soft: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.9);
    --border-color: rgba(0,0,0,0.05);
}

body {
    background-color: var(--bg-soft);
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 5rem 0;
    margin-bottom: -4rem; /* Negative margin to pull up the generator card */
    position: relative;
    border-bottom: 4px solid #bc1888;
}

.hero-gradient::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(220, 39, 67, 0.15), transparent 50%),
                radial-gradient(circle at bottom left, rgba(65, 105, 225, 0.15), transparent 50%);
    pointer-events: none;
}

/* Generator Card (Glassmorphism) */
.generator-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

/* Instagram Live Preview */
.ig-preview-container {
    background: #fff;
    border-radius: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 8px solid #f1f5f9;
    padding: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #262626;
    max-width: 400px;
    margin: 0 auto;
}

.ig-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.ig-username {
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ig-profile-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.ig-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    padding: 3px;
    background: var(--ig-gradient);
}

.ig-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
}

.ig-stats {
    display: flex;
    gap: 1.5rem;
    text-align: center;
}

.ig-stat-num {
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
}

.ig-stat-label {
    font-size: 0.85rem;
}

.ig-bio-section {
    font-size: 0.95rem;
    line-height: 1.4;
    white-space: pre-wrap; /* important for bio formatting */
}

.ig-display-name {
    font-weight: 700;
}

.ig-category {
    color: #8e8e8e;
}

.ig-link {
    color: #00376b;
    font-weight: 600;
    text-decoration: none;
    display: block;
    margin-top: 0.25rem;
}

.ig-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.ig-btn {
    background: #efefef;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    flex: 1;
    cursor: pointer;
}

.ig-btn.primary {
    background: #0095f6;
    color: white;
}

/* Result Cards */
.bio-result-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    white-space: pre-wrap;
    font-family: inherit;
    line-height: 1.5;
}

.bio-result-card:hover {
    border-color: #bc1888;
    box-shadow: 0 4px 12px rgba(188, 24, 136, 0.1);
    transform: translateY(-2px);
}

.bio-result-card .copy-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--bg-soft);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.4rem;
    color: #64748b;
    opacity: 0;
    transition: opacity 0.2s;
}

.bio-result-card:hover .copy-btn {
    opacity: 1;
}

.bio-result-card .copy-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Inputs and Selects */
.form-control, .form-select {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
}

.form-control:focus, .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.btn-generate {
    background: var(--ig-gradient);
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    transition: opacity 0.2s;
}

.btn-generate:hover {
    opacity: 0.9;
    color: white;
}

.btn-generate:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
