/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* Color Palette - Blue and Dark Gray */
    --primary-blue: #2563eb;
    --primary-blue-dark: #1d4ed8;
    --dark-gray: #1f2937;
    --darker-gray: #111827;
    --medium-gray: #6b7280;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --border-radius: 12px;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--darker-gray);
    color: var(--white);
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Single Page Container */
.single-page-container {
    width: 100%;
    max-width: 500px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 40px 20px;
    background-color: var(--darker-gray);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Logo and Title */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    margin-top: 40px;
}

.app-logo {
    margin-bottom: 15px;
}

.logo-container h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary-blue), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

a:hover, a:active {
    color: var(--primary-blue-light);
}

button {
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 24px var(--app-padding);
    margin-bottom: 16px;
}

/* Features Carousel */
.features-carousel {
    width: 100%;
    max-width: 400px;
    margin: 30px 0;
    overflow: hidden;
    position: relative;
}

.carousel-container {
    display: flex;
    transition: transform 0.4s ease;
}

.carousel-slide {
    min-width: 100%;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.1), rgba(17, 24, 39, 0.2));
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-slide i {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.carousel-slide h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--white);
}

.carousel-slide p {
    font-size: 14px;
    color: var(--medium-gray);
    line-height: 1.5;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--medium-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary-blue);
    transform: scale(1.3);
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px var(--app-padding);
    background-color: var(--darker-gray);
    font-size: 12px;
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1001;
}

.status-bar-icons {
    display: flex;
    gap: 8px;
}

.status-bar-icons i {
    font-size: 12px;
}

/* Mobile App Navigation Bar */
.mobile-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--dark-gray);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--medium-gray);
    font-size: 10px;
    padding: 8px 0;
    width: 20%;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--primary-blue);
}

.nav-item:active {
    color: var(--primary-blue-light);
    transform: scale(0.95);
}

/* Authentication Buttons */
.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 220px;
    margin: 30px auto 20px auto; /* Add top margin and center horizontally */
}

.login-btn, .register-btn {
    width: 100%;
    padding: 22px 0;
    border-radius: var(--border-radius);
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.login-btn {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--primary-blue);
}

.login-btn:active {
    background-color: rgba(37, 99, 235, 0.2);
    transform: scale(0.98);
}

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

.register-btn:active {
    background-color: var(--primary-blue-dark);
    transform: scale(0.98);
}

.forgot-password {
    color: var(--medium-gray);
    font-size: 14px;
    text-align: center;
    margin-top: 5px;
    text-decoration: none;
}

.forgot-password:active {
    color: var(--primary-blue);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px var(--app-padding);
    background-color: var(--darker-gray);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 32px;
    width: 32px;
    margin-right: 8px;
}

.logo h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.logo span {
    color: var(--primary-blue);
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.login-btn {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--primary-blue);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 14px;
}

.login-btn:active {
    background-color: rgba(59, 130, 246, 0.2);
    transform: scale(0.98);
}

.register-btn {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 14px;
}

.register-btn:active {
    background-color: var(--primary-blue-dark);
    transform: scale(0.98);
}

/* Hero Section (App Style) */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px var(--app-padding) 30px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    z-index: 2;
}

.hero-content h1 {
    font-size: 28px;
    margin-bottom: 12px;
    background: linear-gradient(to right, var(--white), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content h1 span {
    color: var(--primary-blue);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.hero-content p {
    font-size: 16px;
    color: var(--medium-gray);
    margin-bottom: 24px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
}

.primary-btn {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.primary-btn:active {
    background-color: var(--primary-blue-dark);
    transform: translateY(2px);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.hero-image {
    width: 100%;
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 80%;
    max-width: 300px;
    border-radius: var(--border-radius);
}

/* App Features Section */
.app-features {
    text-align: center;
    background-color: var(--dark-gray);
    border-radius: var(--border-radius);
    padding: 24px var(--app-padding);
    margin: 16px var(--app-padding);
    overflow: hidden;
}

.app-features h2 {
    font-size: 22px;
    margin-bottom: 24px;
    position: relative;
}

.feature-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    gap: 16px;
    padding: 8px 4px;
    margin: 0 -4px;
}

.feature-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.feature-slide {
    flex: 0 0 80%;
    scroll-snap-align: center;
    background-color: rgba(31, 41, 55, 0.8);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-icon {
    background-color: var(--primary-blue);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.feature-icon i {
    font-size: 24px;
    color: var(--white);
}

.feature-slide h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-slide p {
    color: var(--medium-gray);
    font-size: 14px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--medium-gray);
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary-blue);
    width: 24px;
    border-radius: 4px;
}

/* Feed Section (App Style) */
.feed {
    padding: 16px var(--app-padding);
}

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

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.refresh-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:active {
    background-color: rgba(59, 130, 246, 0.2);
    transform: rotate(180deg);
    transition: transform 0.5s ease;
}

.post {
    background-color: var(--dark-gray);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
}

.post-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid var(--primary-blue);
}

.post-info {
    flex: 1;
}

.post-info h4 {
    font-size: 15px;
    color: var(--white);
    margin-bottom: 2px;
}

.post-info span {
    font-size: 12px;
    color: var(--medium-gray);
}

.more-options {
    width: 32px;
    height: 32px;
    background: transparent;
    color: var(--medium-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.more-options:active {
    background-color: rgba(255, 255, 255, 0.1);
}

.post-content {
    margin-bottom: 16px;
}

.post-content p {
    font-size: 15px;
    line-height: 1.5;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
}

.post-actions button {
    background: transparent;
    color: var(--medium-gray);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
}

.post-actions button:active {
    color: var(--primary-blue);
    transform: scale(0.98);
}

.post-actions button i {
    font-size: 16px;
}

/* Marketplace Section (App Style) */
.marketplace {
    background-color: var(--dark-gray);
    border-radius: var(--border-radius);
    padding: 16px var(--app-padding);
    margin: 0 var(--app-padding) 16px;
}

.view-all-btn {
    color: var(--primary-blue);
    background: transparent;
    font-size: 14px;
    font-weight: 500;
}

.market-items {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 8px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.market-items::-webkit-scrollbar {
    display: none;
}

.market-item {
    flex: 0 0 70%;
    scroll-snap-align: start;
    background-color: rgba(31, 41, 55, 0.8);
    border-radius: var(--border-radius);
    padding: 16px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.item-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-blue);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
}

.market-item h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--primary-blue);
}

.price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
}

.price i {
    color: #fcd34d;
}

.buy-btn {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 500;
    width: 100%;
}

.buy-btn:active {
    background-color: var(--primary-blue-dark);
    transform: scale(0.98);
}

/* App CTA */
.app-cta {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    border-radius: var(--border-radius);
    padding: 24px var(--app-padding);
    text-align: center;
    margin: 24px var(--app-padding) 80px;
}

.app-cta h2 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--white);
}

.app-cta p {
    font-size: 16px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.register-cta-btn {
    background-color: var(--white);
    color: var(--primary-blue);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 16px;
    width: 80%;
    max-width: 240px;
}

.register-cta-btn:active {
    background-color: var(--light-gray);
    transform: scale(0.98);
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 60px;
    padding-bottom: 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo h3 {
    font-size: 20px;
}

.footer-logo span {
    color: var(--primary-blue);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.link-group h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.link-group a {
    display: block;
    color: var(--medium-gray);
    margin-bottom: 10px;
    font-size: 14px;
}

.link-group a:hover {
    color: var(--primary-blue);
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

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

.social-links a:hover {
    background-color: var(--primary-blue);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    color: var(--medium-gray);
    font-size: 14px;
    margin-top: 40px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.2s ease;
}

.modal {
    background-color: var(--dark-gray);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--medium-gray);
    font-size: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:active {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
}

.modal-body textarea {
    width: 100%;
    height: 120px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 12px;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    resize: none;
    margin-bottom: 16px;
}

.modal-body textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.post-options {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.option-btn {
    background-color: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--medium-gray);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.option-btn:active {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
}

.post-btn {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 8px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.post-btn:active {
    background-color: var(--primary-blue-dark);
    transform: scale(0.98);
}

/* Options Menu */
.options-menu {
    position: absolute;
    background-color: var(--dark-gray);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 1000;
    min-width: 180px;
    animation: fadeIn 0.2s ease;
}

.option-item {
    padding: 12px 16px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.option-item:active {
    background-color: rgba(255, 255, 255, 0.05);
}

.option-item i {
    width: 20px;
    text-align: center;
    color: var(--medium-gray);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rotating {
    animation: rotate 0.5s linear;
}

/* Media Queries */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 0;
    }
    
    .hero-content, .hero-image {
        width: 100%;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .feature-cards, .post-cards, .marketplace-cards {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    nav {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .primary-btn, .secondary-btn {
        width: 100%;
    }
}
