:root {
    --primary-gold: #d4af37;
    --secondary-gold: #b8941f;
    --dark-bg: #1a1a2e;
    --darker-bg: #16213e;
    --accent-blue: #00d4ff;
    --accent-purple: #6c5ce7;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    --text-dark: #333333;
    --card-bg: #2d2d44;
    --border-color: #3d3d5c;
    --success-green: #00b894;
    --warning-orange: #fdcb6e;
    --danger-red: #e17055;
    --gradient-primary: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    --gradient-accent: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nanum Gothic', 'IBM Plex Sans KR', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 스크롤바 스타일링 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gold);
}

/* 헤더 스타일 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* 검색 기능 스타일 */
.search-container {
    position: relative;
    margin-left: auto;
    margin-right: 1rem;
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(45, 45, 68, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-form:focus-within {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.search-input {
    background: transparent;
    border: none;
    padding: 0.7rem 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    width: 200px;
    outline: none;
    transition: width 0.3s ease;
}

.search-input::placeholder {
    color: var(--text-gray);
}

.search-input:focus {
    width: 250px;
}

.search-button {
    background: var(--primary-gold);
    border: none;
    padding: 0.7rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background: var(--secondary-gold);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: var(--shadow-heavy);
}

.search-results-content {
    padding: 1rem;
}

.search-result-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.search-result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.search-result-item:hover {
    background: rgba(212, 175, 55, 0.1);
}

.search-result-title {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.search-result-url {
    color: var(--primary-gold);
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.search-result-description {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.4;
}

.search-no-results {
    text-align: center;
    color: var(--text-gray);
    font-style: italic;
    padding: 2rem;
}

.search-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-gray);
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary-gold);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-gold);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-gold);
    transition: all 0.3s ease;
}

/* 메인 콘텐츠 */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* 히어로 섹션 */
.hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cards" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><text x="10" y="15" text-anchor="middle" fill="%23d4af37" opacity="0.1" font-size="12">♠</text></pattern></defs><rect width="100" height="100" fill="url(%23cards)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 3rem;
    min-height: 500px;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-image {
    flex: 0 0 auto;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-gold);
}

.btn-secondary:hover {
    background: var(--primary-gold);
    color: var(--text-dark);
}

/* 섹션 공통 스타일 */
.section {
    padding: 4rem 0;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* 카드 스타일 */
.card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-gold);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.card-description {
    color: var(--text-gray);
    line-height: 1.6;
}

/* 그리드 레이아웃 */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* 특징 섹션 */
.features {
    background: var(--darker-bg);
}

.feature-card {
    text-align: center;
}

.feature-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: 50%;
    color: var(--text-light);
    font-weight: 700;
    line-height: 40px;
    margin-bottom: 1rem;
}

/* 검증 기준 섹션 */
.verification-criteria {
    background: var(--dark-bg);
}

.criteria-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 10px;
    border-left: 4px solid var(--primary-gold);
}

.criteria-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.criteria-content h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.criteria-content p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* 사이트 추천 섹션 */
.recommended-sites {
    background: var(--darker-bg);
}

.site-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.site-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-gold);
}

.site-header {
    padding: 1.5rem;
    background: var(--gradient-primary);
    color: var(--text-dark);
    text-align: center;
}

.site-logo {
    width: 80px;
    height: 80px;
    background: var(--text-light);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.site-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.site-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.stars {
    color: #ffd700;
}

.site-content {
    padding: 1.5rem;
}

.site-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.site-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

.site-features i {
    color: var(--success-green);
}

.site-bonus {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--primary-gold);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.bonus-title {
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.bonus-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

/* FAQ 섹션 */
.faq {
    background: var(--dark-bg);
}

.faq-item {
    background: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(212, 175, 55, 0.1);
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--text-light);
}

.faq-icon {
    color: var(--primary-gold);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-gray);
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* 푸터 */
.footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer .footer-container:first-child {
    padding-top: 3rem;
    padding-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-gold);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-gold);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.footer-bottom .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: var(--text-gray);
}

.disclaimer {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
}

.footer-badges {
    display: flex;
    gap: 1rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border-radius: 20px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.badge i {
    color: var(--primary-gold);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    /* 추천 바카라사이트 섹션 모바일 최적화 */
    .recommended-sites [style*="display: flex; align-items: center; gap: 2rem;"] {
        flex-direction: column;
    }
    
    .recommended-sites [style*="display: flex; align-items: center; gap: 2rem;"] > div {
        margin-bottom: 1.5rem;
        width: 100%;
    }
    
    .recommended-sites [style*="display: flex; align-items: center; gap: 2rem;"] img {
        max-width: 250px;
    }
    
    .recommended-sites .grid[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* 바카라사이트 핵심 특징 섹션 모바일 최적화 */
    .features .grid[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* FAQ 섹션 모바일 최적화 */
    .faq-question h3 {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .faq-answer [style*="display: flex; align-items: center; gap: 2rem;"] {
        flex-direction: column;
    }
    
    .faq-answer [style*="flex: 0 0 200px;"] {
        flex: 0 0 auto !important;
        width: 100% !important;
        margin-bottom: 1rem;
    }
    
    .faq-answer [style*="flex: 1;"] {
        width: 100% !important;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .criteria-item {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-badges {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    /* 초소형 모바일 화면에서는 카드를 1열로 표시 */
    .recommended-sites .grid[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 1rem;
    }
    
    .section-container {
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .criteria-item {
        padding: 1rem;
    }
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 스크롤 애니메이션 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 로딩 애니메이션 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-gold);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 유틸리티 클래스 */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.hidden {
    display: none;
}

.visible {
    display: block;
}
