

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #E0BBE4 0%, #FFDFD3 50%, #D4F1F4 100%);
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
}

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

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo span {
    color: #f093fb;
}

.header-center {
    display: flex;
    gap: 15px;
    flex: 1;
    max-width: 600px;
}

.location-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    padding: 10px 15px;
    border-radius: 25px;
}

.location-dropdown i {
    color: #667eea;
}

.location-dropdown select {
    border: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    outline: none;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    padding: 10px 20px;
    border-radius: 25px;
    flex: 1;
}

.search-bar i {
    color: #667eea;
    margin-right: 10px;
}

.search-bar input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.icon-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.icon-btn:hover {
    color: #667eea;
}

.badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #ff6b6b;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
}

.btn-primary,
.btn-secondary,
.btn-hero,
.btn-danger {
    padding: 10px 25px;
    border-radius: 25px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.btn-large {
    padding: 15px 40px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.btn-danger {
    background: #ff6b6b;
    color: white;
}

.btn-danger:hover {
    background: #ff5252;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%23667eea" width="1200" height="400"/></svg>');
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    text-align: center;
    color: white;
    margin-top: 20px;
    border-radius: 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 10px;
}

.hero-description {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.btn-hero {
    background: white;
    color: #667eea;
    padding: 15px 40px;
    font-size: 18px;
}

.btn-hero:hover {
    transform: scale(1.05);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    margin: 40px 0 30px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.category-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.category-icon {
    font-size: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.category-card p {
    color: #666;
}

/* Featured Ads */
.featured-ads {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

/* About Section */
.about-section {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.about-section h2 {
    color: #667eea;
    margin-bottom: 15px;
}

.about-section ul {
    list-style: none;
    padding-left: 0;
}

.about-section li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.about-section li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Help Accordion */
.help-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: #f5f5f5;
}

.accordion-header h3 {
    color: #667eea;
    font-size: 18px;
}

.accordion-header i {
    transition: transform 0.3s;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 25px;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding: 0 25px 25px;
}

.accordion-content p {
    margin-bottom: 15px;
}

/* Account Layout */
.account-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.account-sidebar {
    background: white;
    border-radius: 20px;
    padding: 20px;
    height: fit-content;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.account-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    text-align: left;
}

.account-nav-item:hover {
    background: #f5f5f5;
}

.account-nav-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.account-main {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.account-tab {
    display: none;
}

.account-tab.active {
    display: block;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.stat-card i {
    font-size: 36px;
    margin-bottom: 10px;
}

.stat-card h3 {
    font-size: 32px;
    margin-bottom: 5px;
}

/* Forms */
.profile-form,
.password-form,
.post-ad-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Wishlist & Ads Grid */
.wishlist-grid,
.ads-grid,
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.ad-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.ad-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.ad-card-content {
    padding: 20px;
}

.ad-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.ad-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ad-card-price {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
}

.ad-card-category {
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    color: #666;
}

.ad-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.ad-card-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
}

.wishlist-btn {
    background: #fff0f5;
    color: #ff6b6b;
}

.wishlist-btn.active {
    background: #ff6b6b;
    color: white;
}

.contact-btn {
    background: #667eea;
    color: white;
}

.contact-btn:hover {
    background: #5568d3;
}

/* Membership Cards */
.membership-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.membership-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.membership-card.featured {
    border-color: #667eea;
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.membership-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.membership-card .price {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 20px;
}

.membership-card ul {
    list-style: none;
    margin-bottom: 25px;
}

.membership-card li {
    padding: 8px 0;
}

/* Privacy Section */
.privacy-section {
    max-width: 600px;
}

.privacy-section h3 {
    margin-bottom: 20px;
    color: #667eea;
}

.danger-zone {
    margin-top: 50px;
    padding: 25px;
    background: #fff5f5;
    border: 2px solid #ff6b6b;
    border-radius: 15px;
}

.danger-zone h3 {
    color: #ff6b6b;
}

/* Post Ad Form */
.photo-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Listings Layout */
.listings-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.filters-sidebar {
    background: white;
    border-radius: 20px;
    padding: 25px;
    height: fit-content;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h4 {
    margin-bottom: 12px;
    color: #667eea;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
}

.filter-group input[type="checkbox"] {
    margin-right: 8px;
}

.listings-main {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.listings-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: white;
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    position: relative;
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.modal-content h2 {
    margin-bottom: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-footer-text {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.modal-footer-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #333;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 3000;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: #4caf50;
}

.toast.error {
    background: #ff6b6b;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .listings-layout,
    .account-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar,
    .account-sidebar {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .header-content {
        justify-content: center;
    }

    .header-center {
        flex-direction: column;
        width: 100%;
        max-width: none;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
    }

    .hero-title {
        font-size: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* Smooth Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page.active {
    animation: fadeIn 0.5s ease;
}



