/* style.css - Blender-Style Blog Platform */

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

:root {
    --bg-dark: #1d1d1d;
    --bg-panel: rgba(40, 40, 40, 0.85);
    --bg-header: rgba(30, 30, 30, 0.9);
    --accent-blue: #4772b3;
    --accent-blue-hover: #5a8fd9;
    --text-primary: #e6e6e6;
    --text-secondary: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.1);
    --header-height: 40px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.blue-button {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #3a5a8f 100%);
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(71, 114, 179, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blue-button:hover {
    background: linear-gradient(135deg, var(--accent-blue-hover) 0%, #4a6faf 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(71, 114, 179, 0.6);
}

.blue-button:active {
    transform: translateY(0);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 3px;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Main Content */
.main-container {
    display: flex;
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

.content-area {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

/* Home Hero Section */
.home-hero {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.home-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeIn 0.6s ease-out;
}

.home-lead {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    animation: fadeIn 0.6s ease-out 0.1s both;
}

.hero-image-container {
    margin: 40px 0;
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.abstract-geometric {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.geo-shape {
    position: absolute;
    border-radius: 8px;
    opacity: 0.8;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.shape-1 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(71, 114, 179, 0.6) 0%, rgba(58, 90, 143, 0.8) 100%);
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(15deg);
    animation: floatShape1 6s ease-in-out infinite;
}

.shape-2 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(100, 149, 237, 0.5) 0%, rgba(71, 114, 179, 0.7) 100%);
    bottom: 40px;
    left: 20px;
    transform: rotate(-25deg);
    animation: floatShape2 7s ease-in-out infinite 1s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(176, 196, 222, 0.4) 0%, rgba(100, 149, 237, 0.6) 100%);
    top: 60px;
    right: 30px;
    border-radius: 50%;
    animation: floatShape3 5s ease-in-out infinite 0.5s;
}

.shape-4 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(71, 114, 179, 0.4) 0%, rgba(58, 90, 143, 0.6) 100%);
    bottom: 20px;
    right: 60px;
    transform: rotate(45deg);
    animation: floatShape4 8s ease-in-out infinite 1.5s;
}

@keyframes floatShape1 {
    0%, 100% { transform: translateX(-50%) rotate(15deg) translateY(0); }
    50% { transform: translateX(-50%) rotate(20deg) translateY(-15px); }
}

@keyframes floatShape2 {
    0%, 100% { transform: rotate(-25deg) translateY(0); }
    50% { transform: rotate(-20deg) translateY(-10px); }
}

@keyframes floatShape3 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.05); }
}

@keyframes floatShape4 {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(50deg) translateY(-8px); }
}

.home-content {
    text-align: left;
    animation: fadeIn 0.6s ease-out 0.3s both;
}

.home-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.home-content strong {
    color: var(--text-primary);
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 1px solid var(--border-color);
    padding: 20px;
    overflow-y: auto;
    animation: slideLeft 0.5s ease-out;
}

@keyframes slideLeft {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.template-grid {
    display: grid;
    gap: 12px;
}

.template-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-blue);
    transform: translateX(-5px);
}

.template-card.active {
    background: rgba(71, 114, 179, 0.2);
    border-color: var(--accent-blue);
}

.template-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
}

.template-desc {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Theme Chooser */
.theme-chooser {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.theme-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    text-align: left;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-blue);
}

.theme-btn.active {
    background: rgba(71, 114, 179, 0.3);
    border-color: var(--accent-blue);
}

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.blog-card {
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.blog-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-secondary);
}

.blog-content {
    padding: 20px;
}

.blog-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.blog-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.blog-date {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 3px;
}

.read-more {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: var(--accent-blue-hover);
}

/* Page Sections */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.about-content {
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.features-list {
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.features-list li {
    margin-bottom: 8px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .home-title {
        font-size: 32px;
    }
    
    .abstract-geometric {
        width: 200px;
        height: 200px;
    }
    
    .shape-1 { width: 100px; height: 100px; }
    .shape-2 { width: 80px; height: 80px; }
    .shape-3 { width: 60px; height: 60px; }
    .shape-4 { width: 50px; height: 50px; }
}

/* Floating particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(71, 114, 179, 0.3);
    border-radius: 50%;
    animation: float 15s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Pulse animation for button */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

@keyframes rippleEffect {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(100);
        opacity: 0;
    }
}
