/* DonutMarket Clone Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors matching original design */
    --bg-primary: #181a1c;
    --bg-secondary: #2b313f;
    --bg-card: #1a1d21;
    --bg-card-hover: #1f2329;
    --accent-blue: #0b6bed;
    --accent-blue-hover: #0956c7;
    --accent-green: #22c55e;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border: #374151;
    --yellow: #fbbf24;
    --orange: #f97316;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Announcement Banner */
.announcement-banner {
    background: var(--accent-blue);
    color: white;
    padding: 0.75rem 1rem;
    text-align: center;
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
}

.announcement-icon {
    margin-right: 0.5rem;
}

.announcement-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
}

.announcement-close:hover {
    opacity: 0.8;
}

/* Header */
.header {
    background: var(--bg-primary);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    flex: 1;
}

.gift-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-center {
    flex: 0 0 auto;
    text-align: center;
}

.logo-image {
    height: 60px;
    width: auto;
}

.header-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.cart-btn {
    background: var(--accent-blue);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.cart-btn:hover {
    background: var(--accent-blue-hover);
}

.cart-count {
    background: var(--orange);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.login-btn {
    background: var(--accent-blue);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-weight: 500;
}

.login-btn:hover {
    background: var(--accent-blue-hover);
}

/* Main Content */
.main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.highlight {
    color: var(--accent-blue);
    font-weight: 600;
}

/* Categories */
.categories {
    margin-bottom: 2rem;
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.category-tab {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    min-width: 120px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.category-tab:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-blue);
}

.category-tab.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.category-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 0.5rem;
    display: block;
}

.category-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.category-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--orange);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Product Cards */
.product-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.product-card.best-value {
    border-color: var(--yellow);
    position: relative;
}

.product-card.best-value::before {
    content: 'Best Value';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--yellow);
    color: var(--bg-primary);
    padding: 0.25rem 1rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-image {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: block;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-amount {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.product-pricing {
    margin-bottom: 1.5rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.product-original-price {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.product-discount {
    background: var(--accent-green);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.add-to-cart-btn {
    background: var(--accent-blue);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}

.add-to-cart-btn:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-1px);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

/* Custom Amount Input */
.custom-amount-input {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem;
    color: var(--text-primary);
    width: 100%;
    margin-bottom: 1rem;
    text-align: center;
}

.custom-amount-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

/* How It Works Section */
.how-it-works {
    margin: 4rem 0;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    color: white;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Reviews Section */
.reviews {
    margin: 4rem 0;
    text-align: center;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.review-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
}

.review-stars {
    color: var(--yellow);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.25rem;
}

.review-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.review-verified {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.discord-btn {
    background: var(--accent-blue);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.2s ease;
}

.discord-btn:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
}

.terms-btn {
    background: var(--accent-blue);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 1rem;
}

.terms-btn:hover {
    background: var(--accent-blue-hover);
}

.footer-copyright {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-disclaimer {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: var(--bg-primary);
    border-left: 2px solid var(--border);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.cart-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.cart-item-image {
    width: 48px;
    height: 48px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background: var(--accent-blue);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--accent-blue-hover);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

.cart-total {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.checkout-btn {
    background: var(--accent-green);
    border: none;
    padding: 1rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    font-size: 1rem;
}

.checkout-btn:hover {
    background: #16a34a;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Discord Contact */
.discord-contact {
    text-align: center;
}

.discord-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.discord-contact h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.discord-contact p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.discord-id {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.discord-username {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--accent-blue);
}

.copy-btn {
    background: var(--accent-blue);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    cursor: pointer;
}

.copy-btn:hover {
    background: var(--accent-blue-hover);
}

.order-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    text-align: left;
}

.order-summary h5 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
}

.order-total {
    border-top: 1px solid var(--border);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease-out;
}

/* Scrollbar Styling */
.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.cart-items::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 3px;
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue-hover);
}
