/*
Theme Name: QuantumSpiral
Theme URI: https://example.com/quantumspiral
Author: Juliana
Author URI: https://example.com/
Description: A dark mode WordPress theme inspired by quantum spirals. Features a fixed dark theme, spiral animations, and a 3-column grid layout.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quantumspiral
Tags: dark, three-columns, right-sidebar, custom-colors, translation-ready
*/

:root {
    --qs-bg-color: #0d0d15;
    --qs-text-color: #e0e0e0;
    --qs-accent-color: #00ffff;
    --qs-secondary-color: #bf00ff;
    --qs-link-color: #00b7ff;
    --qs-link-hover: #ffffff;
    --qs-card-bg: #1a1a24;
    --qs-border-color: #333344;
}

body {
    background-color: var(--qs-bg-color);
    color: var(--qs-text-color);
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    color: var(--qs-link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--qs-link-hover);
}

/* Header */
.site-header {
    background-color: rgba(13, 13, 21, 0.95);
    padding: 20px 0;
    border-bottom: 1px solid var(--qs-border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.site-branding {
    text-align: center;
    position: relative;
}

.site-title a {
    color: var(--qs-accent-color);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.site-description {
    color: var(--qs-secondary-color);
    font-size: 1rem;
    margin-top: 5px;
}

/* Spiral Animation */
.spiral-container {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    position: relative;
    animation: rotateSpiral 10s linear infinite;
}

.spiral-ring {
    position: absolute;
    border: 2px solid transparent;
    border-top: 2px solid var(--qs-accent-color);
    border-right: 2px solid var(--qs-secondary-color);
    border-radius: 50%;
    animation: spin 3s linear infinite;
}

.spiral-ring:nth-child(1) {
    width: 100%;
    height: 100%;
    animation-duration: 2s;
}

.spiral-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    animation-duration: 3s;
    animation-direction: reverse;
}

.spiral-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    animation-duration: 4s;
}

@keyframes rotateSpiral {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-content {
    display: grid;
    gap: 40px;
    margin: 40px auto;
}

/* Grid Layout for Index */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    /* Fallback */
    gap: 30px;
}

@media (min-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Sidebar Layout for Single */
.single-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 900px) {
    .single-layout {
        grid-template-columns: 3fr 1fr;
    }
}

/* Posts */
.post-card {
    background: var(--qs-card-bg);
    border: 1px solid var(--qs-border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.1);
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.post-title {
    margin: 0 0 10px;
    font-size: 1.5rem;
}

.post-title a {
    color: var(--qs-text-color);
}

.post-title a:hover {
    color: var(--qs-accent-color);
}

.entry-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

/* Sidebar */
.sidebar-widget {
    background: var(--qs-card-bg);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    border: 1px solid var(--qs-border-color);
}

.widget-title {
    color: var(--qs-accent-color);
    border-bottom: 2px solid var(--qs-secondary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* Content */
.entry-content {
    font-size: 1.1rem;
    color: #ccc;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
}

/* Footer */
.site-footer {
    background: rgba(13, 13, 21, 0.95);
    border-top: 1px solid var(--qs-border-color);
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
    color: #888;
}

/* Gutenberg Support */
.has-background {
    background-color: var(--qs-card-bg);
}

.has-text-color {
    color: var(--qs-text-color);
}