/* BugBazar Cybersecurity Platform - Authentic Design System */
/* Created by Security Training Solutions Pvt Ltd */
/* Last updated: November 2024 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}



/* Layout */
.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* Navigation */
.navbar {
    background: #1f2937;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ef4444;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #d1d5db;
    border-radius: 0.375rem;
    transition: all 0.2s;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.nav-link:hover {
    background: #374151;
    color: white;
}

.nav-link.active {
    background: #ef4444;
    color: white;
}

.logout-btn {
    background: #dc2626 !important;
    color: white !important;
}

.logout-btn:hover {
    background: #b91c1c !important;
}

/* Auth Page */
.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.auth-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    background: white;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2.5rem;
    color: #ef4444;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #6b7280;
    font-size: 1.125rem;
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    background: #f9fafb;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.auth-tab.active {
    background: #ef4444;
    color: white;
}

.auth-form-content {
    display: none;
}

.auth-form-content.active {
    display: block;
}

.auth-hero {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.auth-hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.auth-hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
}

.learn-without-practice {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.learn-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    min-width: 220px;
}

.learn-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.learn-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.9;
}

.learn-nav {
    text-align: left;
    margin-bottom: 1rem;
}

.back-to-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #374151;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.back-to-login-btn:hover {
    background: #1f2937;
    transform: translateY(-1px);
}

.learn-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.website-logo-compact {
    flex-shrink: 0;
    text-align: left;
}

.logo-container-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.logo-container-compact i {
    font-size: 1.5rem;
    color: #ef4444;
}

.logo-text-compact {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ef4444;
}

.logo-tagline-compact {
    font-size: 0.75rem;
    margin: 0;
    font-weight: 500;
    color: #6b7280;
}

.practice-cta-compact {
    flex-shrink: 0;
}

.register-now-btn-compact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(139, 92, 246, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.register-now-btn-compact:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.5);
}

.main-content {
    text-align: center;
    margin-bottom: 1rem;
}

.main-content h1 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.main-content p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.feature i {
    font-size: 1.5rem;
    opacity: 0.8;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input.error {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.form-group input.valid {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.form-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-error.show {
    display: block;
}

.form-help {
    color: #6b7280;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Buttons */
.btn-primary {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
}

.btn-primary:hover {
    background: #dc2626;
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.btn-secondary {
    background: #6b7280;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-back {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.btn-back:hover {
    background: #e5e7eb;
}

/* Dashboard */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    font-size: 1.125rem;
    color: #6b7280;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    background: #fef2f2;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-size: 1.5rem;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: #6b7280;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.challenges-section {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.section-header h2 {
    font-size: 1.875rem;
    color: #1f2937;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.challenge-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
    background: white;
}

.challenge-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.challenge-card.completed {
    border-color: #10b981;
    background: #f0fdf4;
}

.challenge-card.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.challenge-number {
    width: 2rem;
    height: 2rem;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.challenge-number.completed {
    background: #10b981;
}

.challenge-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.challenge-status.completed {
    background: #d1fae5;
    color: #065f46;
}

.challenge-status.in-progress {
    background: #fef3c7;
    color: #92400e;
}

.challenge-status.locked {
    background: #f3f4f6;
    color: #6b7280;
}

.challenge-info h3 {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.challenge-info p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.challenge-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.difficulty-badge,
.category-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

.difficulty-easy {
    background: #d1fae5;
    color: #065f46;
}

.difficulty-medium {
    background: #fef3c7;
    color: #92400e;
}

.difficulty-hard {
    background: #fee2e2;
    color: #991b1b;
}

.category-badge {
    background: #e0e7ff;
    color: #3730a3;
}

.challenge-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #6b7280;
}

/* Challenge Page */
.challenge-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.challenge-title {
    margin-bottom: 2rem;
}

.challenge-title h1 {
    font-size: 2.25rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.challenge-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* Cards */
.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.card-header h3 {
    font-size: 1.25rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.card-header p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.card-content {
    padding: 1.5rem;
}

.target-url {
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 0.375rem;
    margin: 1rem 0;
    border-left: 4px solid #ef4444;
}

.target-url code {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
    color: #374151;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 0.5rem;
    background: #e5e7eb;
    border-radius: 0.25rem;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: #ef4444;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Hints */
.hints-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hint-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    overflow: hidden;
}

.hint-revealed {
    background: #fef9e7;
    border-color: #f59e0b;
    padding: 1rem;
}

.hint-revealed .hint-icon {
    color: #f59e0b;
    margin-right: 0.5rem;
}

.hint-button {
    width: 100%;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hint-button:hover {
    background: #f3f4f6;
}

.hint-locked {
    background: #f3f4f6;
    color: #9ca3af;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.875rem;
}

/* Token Status */
.token-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 0.375rem;
    display: none;
}

.token-status.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
    display: block;
}

.token-status.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
    display: block;
}

/* Stats */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.stat-row span:first-child {
    color: #6b7280;
}

.stat-row span:last-child {
    font-weight: 500;
    color: #1f2937;
}

/* Account Page */
.account-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.account-container h1 {
    font-size: 2.25rem;
    color: #1f2937;
    margin-bottom: 2rem;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row span:first-child {
    font-weight: 500;
    color: #374151;
}

.info-row span:last-child {
    color: #6b7280;
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    display: none;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
}

.loading-spinner i {
    font-size: 2rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.loading-spinner p {
    color: #6b7280;
    margin: 0;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.warning {
    border-left: 4px solid #f59e0b;
}

.toast.info {
    border-left: 4px solid #3b82f6;
}

.toast-icon {
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

.toast.success .toast-icon {
    color: #10b981;
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast.warning .toast-icon {
    color: #f59e0b;
}

.toast.info .toast-icon {
    color: #3b82f6;
}

.toast-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.toast-content p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Learn Page */
.learn-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.learn-header {
    text-align: center;
    margin-bottom: 3rem;
}

.learn-header h1 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.learn-header p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.bugs-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.bug-section {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.bug-section h2 {
    font-size: 1.875rem;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.medium-blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #00d084;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 208, 132, 0.3);
}

.medium-blog-btn:hover {
    background: #00b56f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 208, 132, 0.4);
    color: white;
}

.bug-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.bug-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.2s;
    display: flex;
    gap: 1rem;
}

.bug-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #ef4444;
}

.bug-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.bug-icon.broken-access { background: #dc2626; }
.bug-icon.crypto-failures { background: #7c3aed; }
.bug-icon.injection { background: #059669; }
.bug-icon.insecure-design { background: #d97706; }
.bug-icon.security-misconfig { background: #0891b2; }
.bug-icon.vulnerable-components { background: #7c2d12; }
.bug-icon.auth-failures { background: #be185d; }
.bug-icon.data-integrity { background: #4338ca; }
.bug-icon.logging-monitoring { background: #374151; }
.bug-icon.ssrf { background: #ef4444; }
.bug-icon.xss { background: #f59e0b; }
.bug-icon.csrf { background: #10b981; }
.bug-icon.clickjacking { background: #8b5cf6; }
.bug-icon.directory-traversal { background: #06b6d4; }
.bug-icon.command-injection { background: #ef4444; }
.bug-icon.race-condition { background: #f97316; }
.bug-icon.xxe { background: #84cc16; }
.bug-icon.websockets { background: #6366f1; }

.bug-content {
    flex: 1;
}

.bug-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.bug-content p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.bug-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ef4444;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.bug-link:hover {
    color: #dc2626;
    text-decoration: underline;
}

.resource-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.resource-card {
    background: #fef9e7;
    border: 1px solid #f59e0b;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.resource-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resource-card p {
    font-size: 0.875rem;
    color: #78350f;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #92400e;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.resource-link:hover {
    color: #78350f;
    text-decoration: underline;
}

/* Developer Section */
.developer-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-top: 2rem;
}

.developer-section h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.developer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.developer-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    backdrop-filter: blur(10px);
}

.developer-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.developer-info p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.developer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.developer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.developer-link.linkedin {
    background: #0077b5;
    color: white;
}

.developer-link.linkedin:hover {
    background: #005885;
    transform: translateY(-2px);
}

.developer-link.email {
    background: #ef4444;
    color: white;
}

.developer-link.email:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-hero {
        order: -1;
        padding: 3rem 1rem;
    }
    
    .auth-hero h2 {
        font-size: 2rem;
    }
    
    .challenge-content {
        grid-template-columns: 1fr;
    }
    
    .challenges-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dashboard-header h1 {
        font-size: 2rem;
    }
    
    .challenge-title h1 {
        font-size: 1.75rem;
    }
    
    .bug-cards {
        grid-template-columns: 1fr;
    }
    
    .resource-cards {
        grid-template-columns: 1fr;
    }
    
    .learn-header h1 {
        font-size: 2rem;
    }
    
    .bug-card {
        flex-direction: column;
        text-align: center;
    }
    
    .bug-icon {
        align-self: center;
    }
    
    .developer-links {
        flex-direction: column;
        align-items: center;
    }
    
    .developer-link {
        width: 100%;
        justify-content: center;
        max-width: 250px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .medium-blog-btn {
        width: 100%;
        justify-content: center;
        max-width: 200px;
    }
    
    .learn-top-bar {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .website-logo-compact {
        order: 1;
        width: 100%;
        text-align: left;
    }
    
    .practice-cta-compact {
        order: 2;
        width: 100%;
        text-align: center;
    }
    
    .learn-nav {
        order: 0;
        width: 100%;
        text-align: left;
    }
    
    .register-now-btn-compact {
        font-size: 0.75rem;
        padding: 0.75rem 1.25rem;
        white-space: normal;
        text-align: center;
    }
    
    .main-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .challenges-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-container,
    .challenge-container,
    .account-container {
        padding: 1rem;
    }
    
    .toast {
        min-width: 280px;
    }
}