/* Professional Feminine Catgirl Blog Styles */
:root {
    --primary-rose: #d4a5c0;
    --primary-rose-dark: #b88ca3;
    --soft-pink: #f8e8f0;
    --elegant-rose: #e8c4d4;
    --deep-rose: #c996b3;
    --warm-white: #fefefe;
    --soft-gray: #f5f5f5;
    --text-dark: #2d2d2d;
    --text-medium: #5a5a5a;
    --accent-gold: #d4af8c;
    --shadow-soft: rgba(212, 165, 192, 0.1);
    --shadow-medium: rgba(212, 165, 192, 0.2);
}

/* Dark Mode */
[data-theme="dark"] {
    --primary-rose: #d4a5c0;
    --primary-rose-dark: #b88ca3;
    --soft-pink: #2a1f2a;
    --elegant-rose: #3a2f3a;
    --deep-rose: #d4a5c0;
    --warm-white: #1a1a1a;
    --soft-gray: #2a2a2a;
    --text-dark: #e0e0e0;
    --text-medium: #b0b0b0;
    --accent-gold: #d4af8c;
    --shadow-soft: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.5);
}

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

html {
    width: 100%;
    max-width: 100%;
}

html, body {
    position: relative;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--warm-white) 0%, var(--soft-pink) 100%);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
    min-height: 100vh;
    transition: 0.3s ease, color 0.3s ease;
    width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1.25rem;
    color: var(--text-medium);
}

a {
    color: var(--deep-rose);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-rose-dark);
    text-decoration: underline;
}

/* Header */
.header-elegant {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 165, 192, 0.2);
    transition: 0.3s ease, border-color 0.3s ease;
    width: 100%;
    max-width: 100%;
}

[data-theme="dark"] .header-elegant {
    background: rgba(26, 26, 26, 0.95);
    border-bottom: 1px solid rgba(212, 165, 192, 0.3);
}

/* Dropdown menus - Dark Mode */
[data-theme="dark"] .dropdown-menu {
    background: rgba(42, 31, 42, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(212, 165, 192, 0.3) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-dark) !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
    background: rgba(212, 165, 192, 0.2) !important;
    color: var(--deep-rose) !important;
}

[data-theme="dark"] .dropdown-item.active,
[data-theme="dark"] .dropdown-item:active {
    background: rgba(212, 165, 192, 0.3) !important;
    color: var(--deep-rose) !important;
}

.navbar-brand {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--deep-rose) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand::before {
    content: '🐱';
    font-size: 1.3rem;
}

.nav-link {
    color: var(--text-medium) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--deep-rose) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-rose);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.container.main-container {
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (max-width: 992px) {
    .main-container {
        grid-template-columns: 1fr;
    }
}

/* Hero Section */
.blog-hero {
    text-align: center;
    padding: 4rem 2rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--warm-white) 0%, var(--soft-pink) 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow-soft);
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--deep-rose), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero p {
    font-size: 1.2rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Posts Grid */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-post-card {
    background: var(--warm-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 165, 192, 0.1);
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.post-date {
    color: var(--primary-rose-dark);
    font-weight: 500;
}

.post-category {
    background: var(--soft-pink);
    color: var(--deep-rose);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.post-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.post-title a {
    color: var(--text-dark);
}

.post-title a:hover {
    color: var(--deep-rose);
    text-decoration: none;
}

.post-excerpt {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--deep-rose);
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more:hover {
    gap: 0.75rem;
    color: var(--primary-rose-dark);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: var(--warm-white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px var(--shadow-soft);
    border: 1px solid rgba(212, 165, 192, 0.1);
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--soft-pink);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-title::before {
    content: '🌸';
    font-size: 1.1rem;
}

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

.widget-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(212, 165, 192, 0.1);
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-medium);
}

.widget-list a:hover {
    color: var(--deep-rose);
    padding-left: 0.5rem;
}

/* Blog Post Page */
.blog-post-content {
    background: var(--warm-white);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 20px var(--shadow-soft);
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow: visible;
    position: relative;
    min-width: 0;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--soft-pink);
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
    width: 100%;
    overflow: visible;
    min-width: 0;
    display: block;
}

.post-content * {
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.post-content p {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    display: block;
    margin-left: 0;
    margin-right: 0;
}

.post-content h2, .post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--deep-rose);
}

.post-content ul, .post-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    padding-right: 0.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    color: var(--text-medium);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.post-content pre {
    overflow-x: auto;
    max-width: 100%;
    word-wrap: normal;
}

.post-content code {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-rose);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--soft-pink);
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.post-content blockquote p {
    margin-bottom: 0.75rem;
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content blockquote strong {
    color: var(--deep-rose);
    font-weight: 600;
}

[data-theme="dark"] .post-content blockquote {
    background: var(--soft-pink);
    border-left-color: var(--primary-rose);
    color: var(--text-dark);
}

.post-content table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* Buttons */
.btn-elegant {
    background: linear-gradient(135deg, var(--primary-rose), var(--elegant-rose));
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-soft);
}

.btn-elegant:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-medium);
    color: white;
}

/* Footer */
.footer-elegant {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    margin-top: 4rem;
    text-align: center;
    border-top: 1px solid rgba(212, 165, 192, 0.2);
    color: var(--text-medium);
    transition: 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .footer-elegant {
    background: rgba(26, 26, 26, 0.95);
    border-top: 1px solid rgba(212, 165, 192, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-hero {
        padding: 2rem 1rem;
    }
    
    .main-container {
        padding: 1rem 0.75rem;
        gap: 1.5rem;
        margin: 0;
        width: 100%;
    }
    
    .container.main-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        width: 100%;
        max-width: 100%;
    }
    
    .blog-post-content {
        padding: 1.5rem 1rem;
        margin: 0;
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
    }
    
    .blog-post-card {
        padding: 1.5rem 1rem;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .post-content {
        font-size: 1rem;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    
    .post-content p {
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }
    
    .post-content ul, .post-content ol {
        margin-left: 1.5rem;
        padding-right: 0.5rem;
        width: calc(100% - 1.5rem);
        max-width: calc(100% - 1.5rem);
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

/* Catgirl subtle touches */
.cat-accent {
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Cards and sections */
.card-elegant {
    background: var(--warm-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px var(--shadow-soft);
    border: 1px solid rgba(212, 165, 192, 0.1);
    margin-bottom: 2rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Mirror Cards */
.mirror-card {
    transition: all 0.3s ease;
}

.mirror-card:hover {
    transform: translateY(-3px);
}

.copyable-url:hover {
    background: var(--elegant-rose) !important;
}

.copy-btn:hover {
    color: var(--primary-rose-dark) !important;
    transform: scale(1.1);
}

/* Blog post filtering */
.blog-post-card.hidden-category {
    display: none !important;
}
