/* style.css - Professional Styles for Script Selling Website */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --primary-color: #5a67d8;
    --primary-dark: #434190;
    --secondary-color: #1a202c;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --background-color: #f7fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #38a169;
    --danger-color: #e53e3e;
    --warning-bg: #fffbe6;
    --warning-border: #ffeeba;
    --warning-text: #855d00;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    margin: 0;
    line-height: 1.7;
    font-size: 16px;
}

/* --- Global & Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0 0 10px;
    position: relative;
    display: inline-block;
}
.section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    height: 4px;
    width: 60px;
    background-color: var(--primary-color);
    border-radius: 2px;
}
.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}
.grid {
    display: grid;
    gap: 30px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}
.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}
.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

/* --- Header & Navigation --- */
.main-header {
    background: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
}
.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}
.main-nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--primary-color); }

/* --- Hero Section --- */
.hero {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    text-align: center;
    padding: 120px 0;
}
.hero h1 {
    font-size: 3.5rem;
    margin: 0 0 15px;
    font-weight: 700;
}
.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}
.hero-buttons .btn { margin: 0 10px; }

/* --- Feature Section --- */
.feature-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(90, 103, 216, 0.15);
}
.feature-icon svg {
    width: 50px;
    height: 50px;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.feature-card h3 {
    font-size: 1.3rem;
    margin: 0 0 10px;
}

/* --- Video & Pricing Sections --- */
.video-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.pricing-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 25px rgba(90, 103, 216, 0.1);
}
.pricing-card h3 {
    font-size: 1.5rem;
    margin: 0 0 10px;
}
.price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0;
}
.price span { font-size: 1rem; font-weight: 400; color: var(--text-secondary); }
.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    text-align: left;
}
.pricing-card ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}
.pricing-card ul li svg {
    width: 20px;
    height: 20px;
    color: var(--success-color);
    margin-right: 10px;
    flex-shrink: 0;
}

/* --- Forms & General Content Pages --- */
.content-wrapper {
    max-width: 800px;
    margin: 60px auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.content-wrapper h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.2);
}
textarea.form-control { resize: vertical; min-height: 120px; }
.alert {
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid transparent;
}
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}
.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}
.alert-info {
    background-color: var(--warning-bg);
    border-color: var(--warning-border);
    color: var(--warning-text);
}
.text-center { text-align: center; }

/* --- Footer --- */
.main-footer {
    background: var(--secondary-color);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

/* --- Admin Panel Specific Styles --- */
.admin-body { background: #eef2f7; }
.admin-container {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: 260px;
    background: var(--secondary-color);
    color: #fff;
    flex-shrink: 0;
    padding: 20px;
}
.admin-sidebar .logo { color: #fff; margin-bottom: 30px; display: block; }
.admin-nav a {
    display: block;
    color: #a0aec0;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.2s ease;
}
.admin-nav a:hover, .admin-nav a.active {
    background-color: var(--primary-color);
    color: #fff;
}
.admin-main {
    flex-grow: 1;
    padding: 40px;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.admin-header h1 { margin: 0; }
.admin-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th, .admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.admin-table th { font-weight: 600; }
.admin-table tr:last-child td { border-bottom: none; }

.status {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: capitalize;
}
.status-pending { background-color: #fffbe6; color: #855d00; }
.status-completed { background-color: #d4edda; color: #155724; }
.status-cancelled { background-color: #f8d7da; color: #721c24; }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .main-header .container { flex-direction: column; gap: 15px; }
    .hero h1 { font-size: 2.8rem; }
    .admin-container { flex-direction: column; }
    .admin-sidebar { width: 100%; height: auto; }
}