/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #0a0a0a;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid #333;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-logo h1 {
    color: #ff6b35;
    font-size: 1.8rem;
    font-weight: bold;
}

/* Header Scroll Effects */
.header.scrolled {
    background: rgba(10, 10, 10, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header.hidden {
    transform: translateY(-100%);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ff6b35;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #ff6b35;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 107, 53, 0.8);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #cccccc;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: #ffffff;
    border-color: #ff6b35;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #e55a2b, #e0841a);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #0a0a0a;
    transform: translateY(-2px);
}

.btn-success {
    background: #198754;
    color: #ffff;
    border-color: #198754;
}

.btn-success:hover {
    background: #157347;
    color: #ffff;
    transform: translateY(-2px);
}

.btn-warning {
    background: #ffc107;
    color: #ffff;
    border-color: #ffc107;
}

.btn-warning:hover {
    background: #ffca2c;
    color: #ffff;
    transform: translateY(-2px);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #ff6b35;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border-radius: 2px;
}

/* Features Section */
.features {
    background: #111111;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.2);
}

.feature-card h3 {
    color: #ff6b35;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #cccccc;
    line-height: 1.8;
}

.features-description {
    text-align: center;
    margin-bottom: 3rem;
}

.features-description h3 {
    color: #ff6b35;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.features-description p {
    color: #cccccc;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.toonko-info {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #333;
    margin-bottom: 3rem;
}

.toonko-info h3 {
    color: #ff6b35;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

.toonko-info p {
    color: #cccccc;
    line-height: 1.8;
    text-align: justify;
}

.features-list {
    display: grid;
    gap: 2rem;
}

.feature-item {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #333;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
}

.feature-item h4 {
    color: #ff6b35;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-item p {
    color: #cccccc;
    line-height: 1.8;
}

/* Categories Section */
.categories {
    background: #0a0a0a;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.category-item {
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.category-item:hover {
    background: #ff6b35;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

.category-link {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: #ffffff;
    text-align: center;
    font-weight: 500;
    transition: color 0.3s ease;
}

.category-item:hover .category-link {
    color: #ffffff;
}

/* Popular Section */
.popular {
    background: #111111;
}

.webtoon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.webtoon-card {
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.webtoon-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.webtoon-image {
    position: relative;
    overflow: hidden;
}

.webtoon-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.webtoon-card:hover .webtoon-image img {
    transform: scale(1.05);
}

.webtoon-info {
    padding: 1.5rem;
}

.webtoon-info h3 {
    color: #ff6b35;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.webtoon-info p {
    color: #cccccc;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Address Section */
.address {
    background: #0a0a0a;
    text-align: center;
}

.address-content {
    max-width: 600px;
    margin: 0 auto;
}

.address-info h3 {
    color: #ff6b35;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.address-info p {
    color: #cccccc;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.address-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Ads Section */
.ads-section { margin-top: 24px; }
.ads-title { color:#ff6b35; font-size:1.4rem; margin: 0 0 12px; }
.ads-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ad-link { display:block; border-radius:10px; overflow:hidden; border:1px solid #333; background:#111; transition:transform .15s ease, box-shadow .15s ease; }
.ad-link:hover { transform: translateY(-2px); box-shadow:0 10px 18px rgba(0,0,0,.25); }
.ad-image { display:block; width:100%; height:auto; object-fit:cover; }

@media (max-width: 768px) {
  .ads-grid { grid-template-columns: 1fr; }
}

/* Footer */
.footer {
    background: #000000;
    border-top: 1px solid #333;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #ff6b35;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section li {
    color: #cccccc;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ff6b35;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff6b35;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .webtoon-grid {
        grid-template-columns: 1fr;
    }
    
    .address-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-card,
    .webtoon-card,
    .feature-item {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 1001;
}

/* Smooth Scrolling Enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Focus Styles for Accessibility */
.btn:focus,
.nav-link:focus,
.category-link:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .feature-card,
    .webtoon-card,
    .feature-item {
        border: 2px solid #ffffff;
    }
    
    .btn-secondary {
        border-color: #ffffff;
    }
}

/* Search Styles */
.search-container {
    margin-top: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid #333;
    border-radius: 50px;
    background: rgba(26, 26, 26, 0.8);
    color: #ffffff;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.search-input::placeholder {
    color: #888;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ff6b35;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #ff6b35;
    color: #ffffff;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
}

.skip-link:focus {
    top: 6px;
}

/* SEO Content Styles */
.seo-content {
    margin: 2rem 0;
    padding: 2rem;
    background: #1a1a1a;
    border-radius: 15px;
    border: 1px solid #333;
}

.seo-content h4 {
    color: #ff6b35;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.seo-content h4:first-child {
    margin-top: 0;
}

.seo-content p {
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.seo-content ul {
    color: #cccccc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.seo-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .back-to-top,
    .search-container {
        display: none;
    }
    
    body {
        background: #ffffff;
        color: #000000;
    }
    
    .hero {
        background: none;
        color: #000000;
    }
    
    .section-title {
        color: #000000;
    }
}

/* Blog Content Styles */
.blog-content {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: #222;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.blog-card h3 {
    color: #ff6b35;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.blog-card p {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-card ul {
    list-style: none;
    padding: 0;
}

.blog-card li {
    color: #ccc;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.blog-card li::before {
    content: "▶";
    color: #ff6b35;
    position: absolute;
    left: 0;
}

/* Responsive Blog Grid */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card {
        padding: 1.5rem;
    }
    
    .blog-card h3 {
        font-size: 1.2rem;
    }
}

/* Content Update Date Styles */
.content-update-date {
    color: #888;
    font-size: 0.9rem;
    text-align: center;
    margin: 0.5rem 0 2rem 0;
    font-style: italic;
}

.content-update-date::before {
    content: "📅 ";
    margin-right: 0.3rem;
}

/* Webtoon Title Link Styles */
.webtoon-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.webtoon-title-link:hover {
    color: #ff6b35;
    text-decoration: underline;
}
