@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root {
    --primary: #1A34FF;
    /* Arturia Blue */
    --accent: #D54C8D;
    --dark: #000000;
    --light-bg: #F0F4F8;
    --white: #ffffff;
    --text-main: #111111;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Arturia-style Geometric Grainy Background */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-color: #F8FAFC;
    background-image:
        linear-gradient(45deg, #E0E7FF 0%, transparent 70%),
        linear-gradient(-45deg, #FFEDF5 0%, transparent 70%),
        linear-gradient(135deg, #FFFBEB 0%, transparent 70%);
    overflow: hidden;
}

.bg-blobs::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.15;
    pointer-events: none;
}

/* Navbar (Black header style) */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.logo-you {
    color: var(--white);
    letter-spacing: -2px;
}

.logo-bus {
    background: linear-gradient(135deg, #00C6FF, #0072FF, #D54C8D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 1px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: var(--transition);
}

.nav-links a:hover {
    opacity: 1;
}

.btn-login {
    background: var(--primary);
    padding: 0.7rem 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    transition: var(--transition);
    border: none;
    font-size: 0.9rem;
}

.btn-login:hover {
    filter: brightness(1.2);
}

/* Hero Section */
.hero {
    padding: 6rem 5% 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    background: var(--white);
    padding: 4rem 3rem;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    display: none;
    /* Arturia style focuses on typography/card in hero */
}

/* Product Section */
.products {
    padding: 4rem 5%;
    position: relative;
}

.section-head {
    margin-bottom: 4rem;
    text-align: center;
}

.section-head h2 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.section-head p {
    font-size: 1.1rem;
    opacity: 0.6;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    padding: 3rem 2rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.card.youtube::before { background: #ff0000; }
.card.netflix::before { background: #E50914; }
.card.disney::before { background: #0063e5; }

.badge {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: white;
    border-radius: 2px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.card .price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.card .price span {
    font-size: 1rem;
    opacity: 0.5;
    font-weight: 400;
}

.card .stock {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.card ul li {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-buy {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--dark);
    color: white;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    transition: var(--transition);
    border: none;
}

.card.youtube .btn-buy { background: #ff0000; }
.card.netflix .btn-buy { background: #E50914; }
.card.disney .btn-buy { background: #0063e5; }

.btn-buy:hover {
    filter: brightness(1.2);
    transform: scale(1.02);
}

/* Login Page Adaptations */
.login-container {
    padding-top: 5rem;
    display: flex;
    justify-content: center;
}

.login-card {
    background: var(--white);
    padding: 3.5rem 2.5rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border-radius: 32px; /* 훨씬 둥글게 */
}

.login-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.social-btn {
    width: 100%;
    padding: 1.1rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.social-btn img {
    width: 22px;
    height: 22px;
}

.btn-google {
    background: #ffffff;
    color: #111;
    border: 1px solid #f0f0f0 !important;
}

.btn-naver {
    background: #03C75A;
    color: #ffffff;
}

.btn-kakao {
    background: #FEE500;
    color: #191919;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    filter: brightness(1.02);
}

.back-home {
    display: inline-block;
    margin-top: 2rem;
    color: var(--text-main);
    text-decoration: none;
    opacity: 0.5;
}

.back-home:hover {
    opacity: 1;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 4rem 5%;
    text-align: center;
}

/* Guide Page */
.guide-section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 70px - 100px); /* Adjust to center mostly */
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
    margin-bottom: 5rem;
}

.guide-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.guide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.step-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.guide-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.guide-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.guide-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.guide-cta {
    text-align: center;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .hero-content {
        padding: 3rem 1.5rem;
    }
    .hero-content h1 {
        font-size: 2.2rem;
        word-break: keep-all;
    }
    .hero-content p {
        font-size: 1rem;
    }

    /* 인기 공유 서비스 섹션 최적화 */
    .card.youtube {
        padding: 2.5rem 1.5rem !important; /* 모바일에서 패딩 축소 */
    }
    .section-head h2 {
        font-size: 2rem !important;
    }
    .card h3 {
        font-size: 1.5rem !important;
    }
    .card .price {
        font-size: 2rem !important;
    }

    /* 공지사항 섹션 최적화 */
    .notice-widget > div {
        padding: 2.5rem 1.5rem !important;
    }
    .notice-widget h2 {
        font-size: 1.8rem !important;
    }
    .notice-widget li a {
        font-size: 0.95rem !important;
    }

    .nav-links {
        display: none;
    }
}

/* Admin Management Pages */
.admin-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}
.admin-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -1px;
}
.order-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.05);
}
.order-table th, .order-table td {
    padding: 18px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.order-table th {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.order-table tr:last-child td {
    border-bottom: none;
}
.order-table td {
    color: #444;
    font-size: 0.95rem;
}
.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}
.status-preparing { background: #FFF9C4; color: #F57F17; }
.status-active { background: #E8F5E9; color: #2E7D32; }
.status-canceled { background: #FFEBEE; color: #C62828; }

.mgmt-input {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    color: var(--dark);
    padding: 8px 12px;
    border-radius: 6px;
    width: 150px;
    font-family: inherit;
    font-size: 0.85rem;
    transition: var(--transition);
}
.mgmt-input:focus {
    outline: none;
    border-color: var(--primary);
}
.btn-save {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
}
.btn-save:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}
.filter-section {
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    align-items: center;
    background: rgba(255,255,255,0.5);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}
.date-filter {
    background: #fff;
    border: 2px solid #e2e8f0;
    color: var(--dark);
    padding: 8px 15px;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 600;
}