/*
Theme Name: Kristal Sohbet
Theme URI: https://example.com/kristal
Author: Your Name
Author URI: https://example.com
Description: Modern, mobil-öncelikli WordPress sohbet teması. Gerçek zamanlı mesajlaşma, sohbet odaları ve kullanıcı dostu arayüz özellikleri.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kristal
Tags: chat, mobile, responsive, modern, blog
*/

/* ========================
   GENEL STILLER
   ======================== */
:root {
    --primary-color: #20B2AA;
    --secondary-color: #1E3A8A;
    --gradient-bg: linear-gradient(135deg, #20B2AA 0%, #1E3A8A 100%);
    --dark-bg: #0F172A;
    --light-text: #F1F5F9;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0F172A;
    color: #F1F5F9;
    line-height: 1.6;
    overflow-x: hidden;
}

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

a:hover {
    color: #1A8F8A;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================
   NAVIGASYON
   ======================== */
.main-header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-menu a {
    color: var(--light-text);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: rgba(32, 178, 170, 0.1);
    color: var(--primary-color);
}

.btn-login {
    background: var(--gradient-bg);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(32, 178, 170, 0.3);
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 178, 170, 0.4);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========================
   HERO SECTION
   ======================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 5% 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.shape {
    position: absolute;
    background: var(--gradient-bg);
    opacity: 0.1;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-1 { width: 300px; height: 300px; top: 10%; left: 10%; }
.shape-2 { width: 200px; height: 200px; top: 60%; right: 10%; animation-delay: 2s; }
.shape-3 { width: 150px; height: 150px; bottom: 10%; left: 50%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    color: #94A3B8;
    margin-bottom: 2rem;
}

.online-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(32, 178, 170, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    margin-bottom: 2rem;
}

.online-dot {
    width: 10px;
    height: 10px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========================
   SOHBET GİRİŞ KARTI
   ======================== */
.chat-login-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-login-card h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.room-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.room-btn {
    background: rgba(30, 58, 138, 0.3);
    border: 2px solid rgba(32, 178, 170, 0.3);
    color: var(--light-text);
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 600;
}

.room-btn:hover,
.room-btn.active {
    background: var(--gradient-bg);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(32, 178, 170, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #94A3B8;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--light-text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(15, 23, 42, 0.8);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748B;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-bg);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 178, 170, 0.4);
}

.form-note {
    text-align: center;
    color: #64748B;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* ========================
   BLOG SECTION
   ======================== */
.blog-section {
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
}

/* ========================
   SIDEBAR
   ======================== */
.sidebar {
    background: rgba(30, 41, 59, 0.5);
    padding: 2rem;
    border-radius: var(--border-radius);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.widget {
    margin-bottom: 2.5rem;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

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

.category-list li,
.popular-list li {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.category-list a,
.popular-list a {
    display: flex;
    justify-content: space-between;
    color: #94A3B8;
}

.category-list a:hover,
.popular-list a:hover {
    color: var(--primary-color);
}

.post-count {
    color: #64748B;
    font-size: 0.9rem;
}

/* ========================
   BLOG POSTS
   ======================== */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background: rgba(30, 41, 59, 0.5);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.post-thumbnail {
    height: 200px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.1);
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.post-meta {
    color: #64748B;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-excerpt {
    color: #94A3B8;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    transform: translateX(5px);
}

/* ========================
   FOOTER
   ======================== */
.main-footer {
    background: rgba(15, 23, 42, 0.95);
    padding: 3rem 5%;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-widget h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-widget p,
.footer-widget a {
    color: #94A3B8;
    line-height: 1.8;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(32, 178, 170, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gradient-bg);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #64748B;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .room-selector {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .chat-login-card {
        padding: 1.5rem;
    }
    
    .blog-posts {
        grid-template-columns: 1fr;
    }
}