/*
Theme Name: Qniversity
Description: Custom WordPress theme for Condaa
Version: 1.0
Author: Condaa Team
*/

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap');

@font-face {
    font-family: 'Pretendard-Regular';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Freesentation-9Black';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-9Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
}

/* Base Typography */
body {
    font-family: 'Pretendard-Regular', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Freesentation-9Black', Arial, sans-serif;
    font-weight: 600;
}

.logo {
    font-family: 'Comfortaa', cursive;
}

/* Header Styles */
.top-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-header {
    position: sticky;
    top: 60px;
    z-index: 1020;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.search-form .form-control {
    border-radius: 25px 0 0 25px;
    border: 1px solid #dee2e6;
}

.search-form .btn {
    border-radius: 0 25px 25px 0;
    border: 1px solid #dee2e6;
    border-left: none;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px 0;
}

/* Sticky Footer */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.sticky-footer .col {
    padding: 8px 4px;
}

.sticky-footer a {
    transition: all 0.3s ease;
}

.sticky-footer a:hover {
    transform: translateY(-2px);
}

.sticky-footer .text-primary {
    color: #0d6efd !important;
}

/* Mobile First Responsive */
@media (max-width: 768px) {
    .top-header .container-fluid {
        padding: 0 15px;
    }
    
    .main-header .container-fluid {
        padding: 0 15px;
    }
    
    .main-content .container-fluid {
        padding: 0 15px;
    }
    
    .sticky-footer .container-fluid {
        padding: 0 10px;
    }
}

/* Desktop Styles */
@media (min-width: 769px) {
    .main-content .container-fluid {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    /* 헤더와 푸터는 전체 너비 유지하되, 내부 콘텐츠는 1400px로 제한 */
    .top-header .container-fluid,
    .main-header .container-fluid,
    .sticky-footer .container-fluid {
        max-width: none;
        margin: 0;
    }
    
    .top-header .container-fluid > .row,
    .main-header .container-fluid > .row,
    .sticky-footer .container-fluid > .row {
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* Content Styles */
.page-title {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.content {
    line-height: 1.6;
    color: #555;
}

/* Theme Colors */
:root {
    --primary-color: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-dark: #7c3aed;
    --secondary-color: #6366f1;
    --secondary-light: #818cf8;
    --secondary-dark: #4f46e5;
    --accent-color: #ec4899;
    --accent-light: #f472b6;
    --accent-dark: #db2777;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* Homepage Styles */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    margin: -20px -15px 0;
    padding: 60px 20px !important;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-stats {
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 100px;
}

.stat-number {
    font-size: 1.5rem;
    color: #ffd700 !important;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8) !important;
}

/* Category Styles */
.category-section {
    background-color: #f8f9fa;
    margin: 0 -15px;
    padding: 40px 20px !important;
}

/* Mobile Category Menu */
.category-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-icon {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 10px;
}

.category-name {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

/* Desktop Category Menu */
.category-desktop-menu {
    max-width: 1200px;
    margin: 0 auto;
}

.main-category {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0 10px;
    min-width: 200px;
}

.main-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.main-category:hover .sub-categories {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-category-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 15px;
}

.main-category-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: #333;
}

.sub-categories {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
}

.sub-category {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

.sub-category:last-child {
    border-bottom: none;
}

.sub-category span {
    display: block;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.sub-category:hover span {
    color: #667eea;
}

.sub-category:hover .sub-sub-categories {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.sub-sub-categories {
    position: absolute;
    left: 100%;
    top: 0;
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    min-width: 200px;
    margin-left: 10px;
}

.sub-sub-categories span {
    display: block;
    padding: 5px 0;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.sub-sub-categories span:hover {
    color: #667eea;
}

/* Featured Content */
.featured-section {
    padding: 40px 20px !important;
}

.content-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.content-image {
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.content-info {
    padding: 15px;
}

.content-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.content-price {
    color: #667eea;
    font-weight: 700;
    font-size: 1rem;
}

/* Homepage 2 Styles */
.hero-section-2 {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    margin: -20px -15px 0;
    padding: 80px 20px !important;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?w=1200&h=600&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-form-large .input-group {
    max-width: 600px;
    margin: 0 auto;
}

.search-form-large .form-control {
    border-radius: 50px 0 0 50px;
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
}

.search-form-large .btn {
    border-radius: 0 50px 50px 0;
    border: none;
    padding: 15px 25px;
    background: var(--accent-color);
}

/* Category Navigation */
.category-nav-section {
    background: var(--gray-50);
    margin: 0 -15px;
    padding: 60px 20px !important;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 3rem;
}

.category-group {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.category-group-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    background: var(--gray-50);
    border-radius: 15px;
    text-decoration: none;
    color: var(--gray-700);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.category-name {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

/* Recommended Content */
.recommended-section {
    padding: 60px 20px !important;
}

.content-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.content-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
}

.category-pill {
    padding: 8px 16px;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-pill:hover,
.category-pill.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.content-carousel .content-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 200px;
}

.content-carousel .content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.content-carousel .content-image {
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    position: relative;
    overflow: hidden;
}

.content-carousel .content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-carousel .content-info {
    padding: 15px;
}

.content-carousel .content-title {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 5px;
    font-size: 0.9rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.content-carousel .content-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
}

/* Creator Campaign */
.creator-campaign-section {
    background: var(--gray-50);
    margin: 0 -15px;
    padding: 60px 20px !important;
}

.campaign-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.campaign-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.campaign-image {
    height: 200px;
    overflow: hidden;
}

.campaign-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.campaign-card:hover .campaign-image img {
    transform: scale(1.05);
}

.campaign-content {
    padding: 20px;
}

.creator-name {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 5px;
}

.campaign-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.campaign-description {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.4;
}

/* Trending Creators */
.trending-creators-section {
    padding: 60px 20px !important;
}

.creator-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.creator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.creator-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.creator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 5px;
}

.creator-category {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* Latest Content */
.latest-content-section {
    background: var(--gray-50);
    margin: 0 -15px;
    padding: 60px 20px !important;
}

.latest-content-group {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    height: 100%;
}

.latest-content-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.latest-content-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.latest-content-item:last-child {
    border-bottom: none;
}

.latest-content-title-small {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 5px;
    line-height: 1.3;
}

.latest-content-time {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    margin: 0 -15px;
    padding: 80px 20px !important;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background: var(--accent-color);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 2rem !important;
    }
    
    .stat-item {
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .category-card {
        height: 100px;
        padding: 15px;
    }
    
    .category-icon {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .category-name {
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .category-item {
        padding: 15px 10px;
    }
    
    .category-icon {
        font-size: 1.5rem;
    }
    
    .category-name {
        font-size: 0.8rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
} 