/* StyleLegend - AdSense Optimized Professional Styles */
:root {
    --primary-color: #FFD700;
    --secondary-color: #FFA500;
    --deep-black: #0a0a0a;
    --rich-black: #1a1a1a;
    --text-primary: #333;
    --text-secondary: #666;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --accent-gold: #FFD700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Header & Navigation */
.main-header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--deep-black);
    text-decoration: none;
    letter-spacing: -1px;
}

.logo i {
    color: var(--accent-gold);
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--deep-black), var(--rich-black));
    color: #fff;
    padding: 100px 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 900;
}

.hero-content p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 40px;
}

.cta-button {
    background: var(--primary-color);
    color: var(--deep-black);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

/* Ad Section */
.ad-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.ad-container {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    overflow: hidden;
}

/* Content Layout */
.content-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Main Column */
.section-title {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 800;
    color: var(--deep-black);
}

.section-desc {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Tool Section */
.tool-section {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.upload-area {
    border: 3px dashed #eee;
    border-radius: 15px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--accent-gold);
    background-color: rgba(255, 215, 0, 0.05);
}

/* Notification style (from script.js fallback but defined here for consistency) */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #0a0a0a;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 600;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    max-width: 300px;
    text-align: center;
}

.upload-icon {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 20px;
}

.upload-btn {
    background: var(--deep-black);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    font-weight: 600;
}

/* Blog Section */
.blog-section {
    margin-top: 40px;
}

.blog-post {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
}

.blog-post h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Sidebar */
.sidebar-widget {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.sidebar-widget h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 10px;
}

.search-box {
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
}

.search-box button {
    background: var(--deep-black);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.category-list a:hover {
    color: var(--secondary-color);
}

.sidebar-ad {
    margin-top: 30px;
    background: #fff;
    padding: 10px;
    border-radius: 15px;
    border: 1px solid #eee;
}

/* About Section */
.about-section {
    background-color: var(--bg-white);
    padding: 80px 20px;
    border-top: 1px solid #eee;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-container h2 {
    margin-bottom: 30px;
    font-size: 2.2rem;
    font-weight: 800;
}

.about-container p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Contact Section */
.contact-section {
    padding: 80px 20px;
    background-color: var(--bg-light);
    border-top: 1px solid #eee;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--deep-black);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.contact-form .cta-button {
    width: 100%;
    border: none;
    cursor: pointer;
}

/* Footer */
.main-footer {
    background-color: var(--deep-black);
    color: #fff;
    padding: 60px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}

/* Card Generator Specifics (re-styling for white theme) */
.legend-card {
    max-width: 350px;
    margin: 40px auto;
    background: #000;
    border-radius: 15px;
    color: #fff;
    overflow: hidden;
}

.card-border {
    padding: 15px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.rarity-badge {
    background: var(--accent-gold);
    color: #000;
    padding: 5px 10px;
    font-weight: 800;
    font-size: 0.8rem;
    border-radius: 5px;
}

.card-stats {
    display: flex;
    gap: 10px;
    color: var(--accent-gold);
    font-weight: 700;
}

.card-image-container {
    width: 100%;
    height: 300px;
    background: #1a1a1a;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--accent-gold);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.tag {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-gold);
    padding: 3px 8px;
    font-size: 0.75rem;
    border-radius: 3px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.card-description {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 15px;
}

.power-bar {
    height: 5px;
    background: #333;
    border-radius: 5px;
    margin-bottom: 5px;
}

.power-fill {
    height: 100%;
    background: var(--accent-gold);
    width: 0;
    transition: width 1s ease;
}

.card-id {
    font-size: 0.75rem;
    color: #666;
    text-align: right;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.btn-primary, .btn-secondary, .btn-tertiary {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary { background: var(--accent-gold); color: #000; }
.btn-secondary { background: #333; color: #fff; }
.btn-tertiary { background: #eee; color: #333; }

/* Responsive */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .nav-menu { display: none; }
    .hero-content h1 { font-size: 2rem; }
    .tool-section { padding: 20px; }
}
