:root {
    --primary-color: #4F46E5;
    --secondary-color: #10B981;
    --bg-color: #F9FAFB;
    --text-color: #1F2937;
    --text-light: #6B7280;
    --border-color: #E5E7EB;
    --white: #FFFFFF;
    --radius-md: 8px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

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

.main-header nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.2s ease;
}

.main-header nav a:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #4338CA;
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-color);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-color);
}

.btn-full {
    width: 100%;
    text-align: center;
    display: block;
}

/* Hero Section */
.hero {
    height: 500px;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3rem;
    max-width: 600px;
    margin-bottom: 1.5rem;
}

.search-bar {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 5px;
}

.search-bar input {
    flex-grow: 1;
    border: none;
    padding: 0.8rem;
    font-size: 1rem;
    background: transparent;
}

.search-bar input:focus {
    outline: none;
}

/* Gigs Grid */
.featured-gigs, .browse-section {
    padding: 4rem 0;
}

.featured-gigs h2, .browse-section h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

.gig-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: var(--text-color);
}

.gig-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.gig-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.gig-card-content {
    padding: 1rem;
}

.gig-card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gig-card-seller {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.gig-card-seller .avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.gig-card-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.gig-card-footer .price {
    color: var(--secondary-color);
}

/* Auth Forms */
.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 0;
}

.auth-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 400px;
}

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

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

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

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.role-selector {
    display: flex;
    gap: 1rem;
}

.form-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
}

.form-switch a {
    color: var(--primary-color);
    font-weight: 500;
}

/* Dashboard */
#dashboard-content h1 {
    margin-bottom: 2rem;
}

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

.dashboard-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.dashboard-card h3 {
    margin-bottom: 1rem;
}

/* Gig Detail */
.gig-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    padding: 4rem 20px;
}

.gig-seller-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
}

.gig-seller-info .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.gig-main-image {
    width: 100%;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.gig-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.pricing-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.pricing-box .price {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.pricing-box .delivery-time {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.pricing-box ul {
    list-style: none;
    margin: 1.5rem 0;
}

.pricing-box ul li {
    margin-bottom: 0.5rem;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
}
