/*
Theme Name: Rottyverse
Theme URI: https://rottyverse.me
Author: Rottyverse
Author URI: https://rottyverse.me
Description: Minimalist ve sanatsal bir WordPress teması. Şiir, öykü ve sanat paylaşımları için özel olarak tasarlanmıştır.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rottyverse
Requires at least: 5.3
Tested up to: 6.4
Requires PHP: 7.4
*/

/* Bu dosya sadece tema tanımlama bilgilerini içerir. Asıl stiller css/main.css dosyasındadır. */
body {
    box-sizing: border-box;
}

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

:root {
    --primary-dark: #2D1637;
    --accent-dark: #1A0F1F;
    --light-accent: #D4BBEC;
    --base-light: #F9F7FC;
    --text-dark: #F0EDF5;
    --text-light: #2A242E;
    --link-color: #A66ACA;
    --button-gradient-start: #7B439C;
    --button-gradient-end: #A66ACA;
    --hover-accent: #4A2960;
    --card-radius: 16px;
    --header-height: 96px;
    --mobile-header-height: 72px;
}

body {
    font-family: var(--body-font, 'Inter', sans-serif);
    line-height: 1.6;
    background: var(--primary-dark);
    color: var(--text-dark);
    transition: all 0.3s ease;
    min-height: 100%;
}

body.light-mode {
    background: var(--base-light);
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


.back-to-top {
    position: fixed;
    right: 1.75rem;
    bottom: 1.75rem;
    width: 3rem;
    height: 3rem;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--button-gradient-start), var(--button-gradient-end));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 120;
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.light-mode .back-to-top {
    color: var(--text-dark);
}

/* Header */
.header {
    background: rgba(30, 15, 38, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(191, 162, 219, 0.2);
}

.light-mode .header {
    background: rgba(245, 243, 247, 0.95);
    border-bottom: 1px solid rgba(59, 28, 74, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.logo {
    font-family: var(--heading-font, 'Playfair Display', serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--light-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--link-color);
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.2rem;
}

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

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.light-mode .nav-menu a {
    color: var(--text-dark);
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--light-accent);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: inherit;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.45);
}

.light-mode .mobile-menu-toggle {
    border-color: rgba(59, 28, 74, 0.15);
}

.light-mode .mobile-menu-toggle:hover,
.light-mode .mobile-menu-toggle:focus-visible {
    background: rgba(59, 28, 74, 0.08);
    border-color: rgba(59, 28, 74, 0.35);
}

.menu-icon {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s ease, top 0.3s ease;
}

.menu-icon::before {
    top: -7px;
}

.menu-icon::after {
    top: 7px;
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon {
    background: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 2px solid var(--light-accent);
    color: var(--light-accent);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.theme-toggle:hover {
    background: var(--light-accent);
    color: var(--primary-dark);
}

.theme-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    line-height: 1;
}

.theme-toggle-icon[hidden] {
    display: none !important;
}

.theme-toggle-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.theme-toggle-icon circle,
.theme-toggle-icon line {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.5;
}

.theme-toggle-icon path {
    fill: currentColor;
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    padding: 3rem 0;
}

/* Featured Post */
.featured-post {
    background: linear-gradient(135deg, var(--accent-dark), var(--hover-accent));
    border-radius: var(--card-radius, 16px);
    padding: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.light-mode .featured-post {
    background: linear-gradient(135deg, #f8f6fa, #ede7f0);
    color: var(--text-dark);
}

.featured-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--button-gradient-start), var(--button-gradient-end));
}

.featured-post h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--light-accent);
}

.light-mode .featured-post h2 {
    color: var(--primary-dark);
}

.featured-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.featured-excerpt {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    gap: 2rem;
}

.post-card {
    background: rgba(30, 15, 38, 0.6);
    border-radius: var(--card-radius, 16px);
    padding: 2rem;
    border: 1px solid rgba(191, 162, 219, 0.1);
    transition: all 0.3s ease;
}

.light-mode .post-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(59, 28, 74, 0.1);
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: var(--light-accent);
    box-shadow: 0 10px 30px rgba(59, 28, 74, 0.3);
}

.post-category {
    display: inline-block;
    background: var(--button-gradient-start);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: var(--card-radius, 16px);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.post-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--light-accent);
}

.light-mode .post-title {
    color: var(--primary-dark);
}

.post-excerpt {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.read-more {
    background: linear-gradient(135deg, var(--button-gradient-start), var(--button-gradient-end));
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.4);
}

/* Sidebar */
.sidebar {
    background: rgba(30, 15, 38, 0.4);
    border-radius: var(--card-radius, 16px);
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.light-mode .sidebar {
    background: rgba(255, 255, 255, 0.6);
}

.sidebar-section {
    margin-bottom: 2.5rem;
}

.sidebar-title {
    font-family: var(--heading-font, 'Playfair Display', serif);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--light-accent);
    border-bottom: 2px solid var(--light-accent);
    padding-bottom: 0.5rem;
}

.light-mode .sidebar-title {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

.sidebar-post {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(191, 162, 219, 0.2);
}

.sidebar-post:last-child {
    border-bottom: none;
}

.sidebar-post-title {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.light-mode .sidebar-post-title {
    color: var(--text-dark);
}

.sidebar-post-date {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-input {
    background: rgba(59, 28, 74, 0.3);
    border: 1px solid rgba(191, 162, 219, 0.3);
    color: var(--text-dark);
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.light-mode .newsletter-input {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-dark);
    border-color: rgba(59, 28, 74, 0.3);
}

.newsletter-button {
    background: linear-gradient(135deg, var(--button-gradient-start), var(--button-gradient-end));
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.4);
}

/* Footer */
.footer {
    background: var(--accent-dark);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    text-align: center;
}

.light-mode .footer {
    background: #e8e2ed;
    color: var(--text-dark);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    color: var(--light-accent);
}

.light-mode .footer-section h3 {
    color: var(--primary-dark);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    background: var(--hover-accent);
    color: var(--light-accent);
    padding: 0.8rem;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--light-accent);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* WordPress Specific Styles */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.wp-block-quote {
    border-left: 4px solid var(--light-accent);
    padding-left: 1rem;
    margin: 1.5rem 0;
}

.wp-block-code {
    background: rgba(30, 15, 38, 0.6);
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.light-mode .wp-block-code {
    background: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-post {
        padding: 1.5rem;
    }

    .featured-post h2 {
        font-size: 2rem;
    }

    .sidebar {
        position: static;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .featured-post {
        padding: 1rem;
    }

    .featured-post h2 {
        font-size: 1.5rem;
    }

    .post-card {
        padding: 1.5rem;
    }
}
