/* Modern, göz yormayan ve mobil uyumlu CSS */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --hover-color: #2980b9;
    --success-color: #27ae60;
    --spacing: 1rem;
    --max-width: 1200px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* Header */
.header {
    background: var(--bg-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

/* Header Login Button */
.header-login-btn {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.btn-login {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    font-size: 0.95rem;
}

.btn-login.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-login.btn-primary:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.btn-login.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-login.btn-success:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

.btn-login.btn-outline {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-login.btn-outline:hover {
    background: var(--secondary-color);
    color: white;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 300px);
    padding: 2rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.sidebar-widget h2 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.popular-posts,
.recent-posts {
    list-style: none;
}

.popular-posts li,
.recent-posts li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.popular-posts li:last-child,
.recent-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.popular-posts a,
.recent-posts a {
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.popular-posts h3,
.recent-posts h3 {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    transition: var(--transition);
}

.popular-posts a:hover h3,
.recent-posts a:hover h3 {
    color: var(--secondary-color);
}

.post-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Hero Login Section */
.hero-login-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--hover-color) 100%);
    border-radius: var(--border-radius);
    padding: 4rem 2rem;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-login-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-login-content {
    position: relative;
    z-index: 1;
}

.hero-login-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-login-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.hero-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 3rem;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.hero-login-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.hero-login-btn svg {
    transition: var(--transition);
}

.hero-login-btn:hover svg {
    transform: translateX(5px);
}

.btn-hero-primary {
    background: white;
    color: var(--secondary-color);
}

.btn-hero-primary:hover {
    background: #f0f0f0;
    color: var(--hover-color);
}

.btn-hero-success {
    background: white;
    color: var(--success-color);
}

.btn-hero-success:hover {
    background: #f0f0f0;
    color: #229954;
}

.btn-hero-outline {
    background: transparent;
    color: white;
    border: 3px solid white;
}

.btn-hero-outline:hover {
    background: white;
    color: var(--secondary-color);
}

/* Posts Grid */
.posts-container {
    width: 100%;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Post Card */
.post-card {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.post-category a {
    color: var(--secondary-color);
    text-decoration: none;
    padding: 0.25rem 0.75rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 20px;
    font-weight: 500;
    transition: var(--transition);
}

.post-category a:hover {
    background: rgba(52, 152, 219, 0.2);
}

.post-title {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.post-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.post-title a:hover {
    color: var(--secondary-color);
}

.post-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--hover-color);
}

.amp-link {
    font-size: 0.75rem;
    color: var(--text-light);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    background: var(--bg-light);
    border-radius: 4px;
}

.amp-link:hover {
    background: var(--border-color);
}

/* Single Post */
.single-post {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 2rem;
}

.post-header .post-meta {
    margin-bottom: 1.5rem;
}

.post-header .post-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.post-header .post-excerpt {
    font-size: 1.25rem;
    color: var(--text-light);
}

.post-featured-image {
    margin: 2rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color);
}

.post-content h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.post-content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--primary-color);
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

.post-content a {
    color: var(--secondary-color);
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.post-share span {
    font-weight: 500;
    color: var(--text-light);
}

.post-share a {
    padding: 0.5rem 1rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.post-share a:hover {
    background: var(--hover-color);
}

.post-views {
    color: var(--text-light);
}

/* Related Posts */
.related-posts {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-color);
    border-radius: var(--border-radius);
}

.related-posts h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-post-card {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.related-post-card:hover {
    background: var(--border-color);
}

.related-post-card a {
    text-decoration: none;
    color: var(--text-color);
}

.related-post-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    margin-top: 4rem;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

.no-posts {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin-top: 2rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-info {
    margin-bottom: 3rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-method {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.contact-method h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-method p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.category-card h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.category-card h2 a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.category-card h2 a:hover {
    color: var(--secondary-color);
}

.category-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.category-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.post-count {
    color: #999;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        order: 2;
    }
    
    .posts-container {
        order: 1;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-login-btn {
        margin-left: auto;
        margin-right: 1rem;
    }
    
    .hero-login-section {
        padding: 3rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .hero-login-title {
        font-size: 2rem;
    }
    
    .hero-login-subtitle {
        font-size: 1rem;
    }
    
    .hero-login-btn {
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
        width: 100%;
        justify-content: center;
    }
    
    .main-nav {
        display: none;
    }
    
    .main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-color);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    
    .main-nav.active ul {
        flex-direction: column;
    }
    
    .main-nav.active .header-login-btn {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .main-nav.active .btn-login {
        width: 100%;
        text-align: center;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }
    
    .main-nav li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-nav a {
        display: block;
        padding: 1rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .single-post {
        padding: 1.5rem;
    }
    
    .post-header .post-title {
        font-size: 1.75rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .post-card {
        margin-bottom: 1rem;
    }
    
    .post-header .post-title {
        font-size: 1.5rem;
    }
    
    .post-share {
        flex-direction: column;
        align-items: flex-start;
    }
}
