/* Main Stylesheet - Onlinetutor Clone */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-purple: #8b5cf6;
    --primary-violet: #a78bfa;
    --accent-orange: #ff6b35;
    --accent-red: #ef4444;
    --light-purple: #f3e8ff;
    --light-pink: #fce7f3;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border-light: #e5e7eb;
    --success: #10b981;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    background: #ffffff;
    line-height: 1.6;
}

/* Header Navigation */
header {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-violet));
    border-radius: 50%;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-purple);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-purple);
    color: white;
}

.btn-primary:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    background: var(--accent-orange);
    color: white;
}

.btn-secondary:hover {
    background: #e55a2a;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
}

.btn-outline:hover {
    background: var(--light-purple);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f3e8ff 0%, #fce7f3 100%);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h1 .highlight-orange {
    color: var(--accent-orange);
}

.hero h1 .highlight-purple {
    color: var(--primary-purple);
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-avatars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ddd;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.avatar-large {
    width: 100px;
    height: 100px;
}

.hero-partners {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding: 2rem 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.partner-logo {
    color: #9ca3af;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Courses Section */
.courses-section {
    padding: 4rem 2rem;
    background: #ffffff;
}

.section-header {
    max-width: 1200px;
    margin: 0 auto 3rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
}

.section-header h2 .highlight {
    color: var(--primary-purple);
}

.explore-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.explore-link:hover {
    gap: 1rem;
}

.courses-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.course-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.course-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.lesson-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #10b981;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.course-body {
    padding: 1.5rem;
}

.course-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.course-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.star {
    color: #fbbf24;
}

.course-instructor {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.instructor-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ddd;
}

.instructor-info {
    font-size: 0.875rem;
}

.instructor-name {
    font-weight: 600;
    color: var(--text-dark);
}

.category-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.category-badge.design {
    background: #fecaca;
    color: #991b1b;
}

.category-badge.programming {
    background: #bfdbfe;
    color: #1e40af;
}

.category-badge.leadership {
    background: #fbcfe8;
    color: #831843;
}

.category-badge.marketing {
    background: #d1d5db;
    color: #374151;
}

.category-badge.language {
    background: #c7d2fe;
    color: #312e81;
}

/* User Dashboard */
.dashboard {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.sidebar h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 0.75rem;
}

.sidebar-menu a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--light-purple);
    color: var(--primary-purple);
}

.dashboard-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

/* Payment Page */
.payment-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.payment-method-card {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method-card:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.payment-method-card.active {
    background: var(--light-purple);
    border-color: var(--primary-purple);
}

.payment-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.payment-method-card h3 {
    margin-bottom: 0.5rem;
}

.qr-code {
    width: 200px;
    height: 200px;
    background: #f3f4f6;
    border-radius: 8px;
    margin: 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

.wallet-address {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.875rem;
    word-break: break-all;
    margin: 1rem 0;
}

.countdown-timer {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-orange);
    margin: 1rem 0;
}

/* Forms */
form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Messages */
.message {
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success);
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--accent-red);
}

.message.warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

/* Admin Dashboard */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.admin-table thead {
    background: var(--light-purple);
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.admin-table tbody tr:hover {
    background: #f9fafb;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    max-width: 500px;
    width: 90%;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .courses-container {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero-avatars {
        gap: 0.5rem;
    }
    
    .avatar,
    .avatar-large {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}
