/* Modern CSS Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --border-color: #e2e8f0;
    --text-color: #334155;
    --text-light: #64748b;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

html {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-display: swap;
}

.page-wrapper {
    flex: 1;
}

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

/* Header */
.main-header {
    background: #ffffff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-shrink: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    min-height: 70px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-image,
.logo picture img {
    height: 55px;
    width: 55px;
    object-fit: contain;
    display: block;
    max-width: 55px;
}

.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,
.main-nav a.active {
    color: var(--primary-color);
}

.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(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Sections */
.featured-section,
.recent-section,
.blog-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--dark-color);
}

/* Automation Grid */
.automation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.automation-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.automation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.automation-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--light-color);
}

.automation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-color);
    color: var(--text-light);
    font-size: 3rem;
}

.placeholder-image.small {
    height: 100px;
    font-size: 2rem;
}

.placeholder-image.large {
    height: 400px;
    font-size: 5rem;
}

.badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.badge.premium {
    background: var(--warning-color);
}

.badge.featured {
    background: var(--success-color);
}

.automation-content {
    padding: 1.5rem;
}

.automation-content h3 {
    margin-bottom: 0.5rem;
}

.automation-content h3 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.automation-content h3 a:hover {
    color: var(--primary-color);
}

.automation-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.automation-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.automation-meta i {
    margin-right: 0.25rem;
}

.automation-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--light-color);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.automation-footer {
    margin-top: 1rem;
}

/* Automation List */
.automation-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.automation-item {
    display: flex;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.automation-item:hover {
    box-shadow: var(--shadow-md);
}

.automation-item-image {
    width: 150px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    background: var(--light-color);
}

.automation-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.automation-item-content {
    flex: 1;
}

.automation-item-content h3 {
    margin-bottom: 0.5rem;
}

.automation-item-content h3 a {
    color: var(--dark-color);
    text-decoration: none;
}

.automation-item-content h3 a:hover {
    color: var(--primary-color);
}

.automation-item-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.automation-item-action {
    display: flex;
    align-items: center;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--light-color);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--light-color);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.blog-content h2,
.blog-content h3 {
    margin-bottom: 0.5rem;
}

.blog-content h2 a,
.blog-content h3 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.blog-content h2 a:hover,
.blog-content h3 a:hover {
    color: var(--primary-color);
}

.blog-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.read-more:hover {
    gap: 0.75rem;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 3rem 0;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.page-header p {
    color: var(--text-light);
    font-size: 1.125rem;
}

/* Filters */
.filters-section {
    margin-bottom: 2rem;
}

.search-box {
    margin-bottom: 1.5rem;
}

.search-box form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.search-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem 0 0 0.5rem;
    font-size: 1rem;
}

.search-box button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 0.5rem 0.5rem 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background: var(--primary-dark);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    font-size: 0.875rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-dots {
    padding: 0.5rem;
    color: var(--text-light);
}

/* Automation Detail */
.automation-detail,
.blog-post-detail {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.automation-detail-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.automation-detail-image img {
    width: 100%;
    border-radius: 0.75rem;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.gallery-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.gallery-thumbnails img:hover {
    border-color: var(--primary-color);
}

.automation-detail-info h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.automation-excerpt {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.automation-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.youtube-preview {
    margin: 1.5rem 0;
    border-radius: 0.75rem;
    overflow: hidden;
}

.youtube-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 0.75rem;
}

.youtube-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.automation-pricing {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.pricing-option {
    flex: 1;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    text-align: center;
}

.pricing-option.premium {
    border-color: var(--warning-color);
    background: #fef3c7;
}

.pricing-option h3 {
    margin-bottom: 0.5rem;
}

.pricing-option .price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.automation-detail-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.content-section {
    margin-bottom: 2rem;
}

.content-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.content-text {
    line-height: 1.8;
    color: var(--text-color);
}

.features-list {
    list-style: none;
}

.features-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-list i {
    color: var(--success-color);
}

/* Blog Post Detail */
.blog-post-header {
    margin-bottom: 2rem;
}

.blog-post-header h1 {
    font-size: 2.5rem;
    margin: 1rem 0;
    color: var(--dark-color);
}

.blog-post-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.blog-post-image {
    width: 100%;
    height: 400px;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-top: 1.5rem;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.blog-tags {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.blog-tags strong {
    margin-right: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--light-color);
    border-radius: 0.25rem;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
}

/* Comments */
.comments-list {
    margin-bottom: 2rem;
}

.comment-item {
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-date {
    color: var(--text-light);
    font-size: 0.875rem;
}

.comment-form {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.comment-form h3 {
    margin-bottom: 1rem;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Sidebar */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ad-container {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
}

.ad-container .ad-placeholder {
    width: 100%;
}

/* AdSense reklamları için */
.adsbygoogle {
    display: block;
    margin: 0 auto;
}

.related-section h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.related-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.related-item:last-child {
    border-bottom: none;
}

.related-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.related-item h4 {
    margin-bottom: 0.25rem;
}

.related-item h4 a {
    color: var(--dark-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.related-item h4 a:hover {
    color: var(--primary-color);
}

.related-item p {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Contact */
.contact-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.25rem;
}

/* Footer */
.main-footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 0;
    flex-shrink: 0;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.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;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
}

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

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    color: var(--text-light);
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

.no-results h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

.text-center {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-image,
    .logo picture img {
        height: 45px;
        width: 45px;
        max-width: 45px;
    }
    
    .logo a {
        font-size: 1.25rem;
        gap: 0.5rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
    }

    .main-nav.active {
        max-height: 500px;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .automation-detail-header,
    .automation-detail-content,
    .blog-post-content,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .automation-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .automation-item {
        flex-direction: column;
    }

    .automation-item-image {
        width: 100%;
    }

    .automation-pricing {
        flex-direction: column;
    }

    .content-sidebar {
        order: -1;
    }
}

@media (max-width: 480px) {
    .logo-image,
    .logo picture img {
        height: 38px;
        width: 38px;
        max-width: 38px;
    }
    
    .logo a {
        font-size: 1.125rem;
        gap: 0.5rem;
    }
    
    .logo a span {
        display: none; /* Mobilde sadece logo göster */
    }

    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .automation-detail,
    .blog-post-detail {
        padding: 1rem;
    }
}

