/* Theme: OrangeMarket */
:root {
    --primary-color: #FF8A3D; /* Danggeun orange */
    --primary-hover: #E87A2B;
    --text-main: #212529;
    --text-muted: #868e96;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #dee2e6;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.1);
    --container-width: 1140px;
    --font-heading: 'Noto Sans KR', sans-serif;
    --font-body: 'Inter', 'Noto Sans KR', sans-serif;
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn-primary, .btn-primary-large {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

.btn-primary:hover, .btn-primary-large:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline, .btn-outline-large {
    background-color: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.btn-outline-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

.btn-secondary {
    background-color: #e9ecef;
    color: var(--text-main);
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.search-bar {
    flex: 0 1 420px;
    background-color: #f2f3f6;
    padding: 10px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    margin: 0 40px;
}

.search-bar input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-size: 0.95rem;
    padding-left: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Hero Section */
.hero {
    background-color: #fff9f5;
    padding: 80px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-text h1 span {
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-image {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

/* Items Grid Section */
.items-section {
    padding: 80px 20px;
}

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

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
}

.view-all {
    font-weight: 600;
    color: var(--text-muted);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 35px;
}

.item-card {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.item-card:hover {
    transform: translateY(-8px);
}

.item-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 20px;
    overflow: hidden;
    background-color: #f1f3f5;
    margin-bottom: 15px;
    box-shadow: var(--shadow-soft);
}

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

.item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.item-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.item-stats {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Community Section */
.community-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.community-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.community-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.community-info h2 span {
    color: #4dabf7;
}

.community-info p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.community-features {
    margin-bottom: 40px;
}

.community-features li {
    margin-bottom: 12px;
    font-weight: 500;
    padding-left: 20px;
    position: relative;
}

.community-features li::before {
    content: "✔️";
    position: absolute;
    left: 0;
    font-size: 0.8rem;
    top: 2px;
}

.community-image {
    height: 400px;
    background: linear-gradient(135deg, #4dabf7 0%, #228be6 100%);
    border-radius: 30px;
    padding: 40px;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow-heavy);
}

.floating-box {
    background-color: var(--white);
    padding: 25px;
    border-radius: 20px;
    width: 100%;
    box-shadow: var(--shadow-soft);
}

.floating-box strong {
    display: block;
    margin-bottom: 10px;
    color: #4dabf7;
}

/* FAB (Floating Action Button) */
.sell-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.btn-fab {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 2.5rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 138, 61, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-fab:hover {
    background-color: var(--primary-hover);
    transform: scale(1.1);
}

/* Footer */
footer {
    padding: 80px 0 40px;
    background-color: #212529;
    color: #dee2e6;
}

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

.footer-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    border-top: 1px solid #495057;
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid, .community-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .search-bar {
        display: none;
    }
    
    .nav-links a:not(.btn-primary) {
        display: none;
    }
}
