/*
Theme Name: Video Pro Theme
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: Modern, hızlı ve SEO dostu video teması. Responsive tasarım, admin panelinden renk özelleştirme ve özel alan yönetimi desteği.
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: video-pro
Tags: video, modern, responsive, seo, fast, customizer
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --text-color: #333333;
    --bg-color: #ffffff;
    --header-bg: #1a1a1a;
    --footer-bg: #1a1a1a;
    --link-color: #ff6b6b;
    --hover-color: #ff5252;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--hover-color);
}

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

/* Header */
.site-header {
    background: var(--header-bg);
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: #fff;
    font-weight: 500;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

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

/* Main Content */
.site-main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Site Main Title */
.site-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

@media (max-width: 768px) {
    .site-main-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
}

/* Video Player */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.video-container-html {
    padding-bottom: 0;
    height: auto;
    min-height: 400px;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-container-html iframe {
    position: relative;
    width: 100%;
    min-height: 400px;
    height: auto;
}

.video-container-html script {
    display: block;
}

/* Video Meta */
.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.video-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.video-meta-item svg {
    width: 18px;
    height: 18px;
    fill: var(--primary-color);
    flex-shrink: 0;
}

.video-meta-item.video-meta-views {
    font-weight: 600;
    color: var(--text-color);
}

.video-meta-item.video-meta-views svg {
    fill: var(--primary-color);
}

/* Content Area */
.entry-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content img {
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

/* Custom Fields */
.custom-fields {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.custom-field {
    margin-bottom: 1.5rem;
}

.custom-field:last-child {
    margin-bottom: 0;
}

.custom-field-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: block;
}

.custom-field-value {
    color: #666;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: #fff;
    padding: 2rem 0;
    margin-top: 4rem;
}

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

.site-footer a {
    color: #fff;
}

.site-footer a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .header-container {
        justify-content: center;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .video-meta {
        flex-direction: column;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .video-taxonomy {
        padding: 1rem;
    }
    
    .taxonomy-items {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment-body {
        flex-direction: column;
    }
    
    .comment-author-avatar {
        margin-bottom: 0.5rem;
    }
    
    .related-videos-title {
        font-size: 1.5rem;
    }
    
    .comments-title {
        font-size: 1.5rem;
    }
}

/* Performance Optimizations */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

/* SEO Friendly */
.entry-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.entry-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.archive-header,
.search-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.archive-title,
.search-title {
    font-size: 2rem;
    color: var(--text-color);
}

.no-posts,
.error-404 {
    text-align: center;
    padding: 4rem 2rem;
}

.error-404 h1 {
    font-size: 6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-404 h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Pagination */
.pagination {
    margin: 3rem 0;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    color: var(--text-color);
    border-radius: 5px;
    transition: var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary-color);
    color: #fff;
}

.pagination .page-numbers.current {
    font-weight: 600;
}

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

.video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.video-card-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #000;
}

.video-card-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card-content {
    padding: 1.5rem;
}

.video-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.video-card-title a {
    color: var(--text-color);
}

.video-card-title a:hover {
    color: var(--primary-color);
}

/* Video Card Meta */
.video-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.video-card-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary-color);
    font-weight: 500;
}

.video-card-views svg {
    fill: currentColor;
    flex-shrink: 0;
}

.video-card-taxonomy {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.video-card-categories,
.video-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.video-card-category,
.video-card-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f0f0f0;
    color: var(--text-color);
    border-radius: 15px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: var(--transition);
}

.video-card-category:hover,
.video-card-tag:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Taxonomy Section */
.video-taxonomy {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.taxonomy-section {
    margin-bottom: 1rem;
}

.taxonomy-section:last-child {
    margin-bottom: 0;
}

.taxonomy-label {
    font-weight: 600;
    color: var(--text-color);
    margin-right: 0.5rem;
    display: inline-block;
}

.taxonomy-items {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.taxonomy-item {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: #fff;
    color: var(--text-color);
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.taxonomy-item:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Related Videos */
.related-videos {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.related-videos-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* Comments */
.comments-area {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.comments-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.comments-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.comment-list {
    list-style: none;
    margin: 0 0 3rem 0;
    padding: 0;
}

.comment-list .comment {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: var(--transition);
}

.comment-list .comment:hover {
    background: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.comment-list .comment:last-child {
    margin-bottom: 0;
}

.comment-body {
    display: flex;
    gap: 1.25rem;
}

.comment-author-avatar {
    flex-shrink: 0;
}

.comment-author-avatar img {
    border-radius: 50%;
    width: 56px;
    height: 56px;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.comment-content {
    flex: 1;
}

.comment-meta {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 700;
    color: var(--text-color);
    font-size: 1rem;
}

.comment-author a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.comment-author a:hover {
    color: var(--hover-color);
}

.comment-date {
    color: #666;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-date::before {
    content: '•';
    color: #999;
}

.comment-text {
    margin: 1rem 0;
    line-height: 1.7;
    color: var(--text-color);
    font-size: 0.95rem;
}

.comment-text p {
    margin-bottom: 0.75rem;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.comment-reply-link:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    color: #fff;
}

/* Modern Comment Form */
.comment-form {
    margin-top: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.comment-form h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.comment-form p {
    margin-bottom: 1.5rem;
}

.comment-form p:last-of-type {
    margin-bottom: 0;
}

.comment-form label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: #fff;
    color: var(--text-color);
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
    background: #fff;
}

.comment-form input[type="text"]:hover,
.comment-form input[type="email"]:hover,
.comment-form input[type="url"]:hover,
.comment-form textarea:hover {
    border-color: #ccc;
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: #999;
    opacity: 0.7;
}

.comment-form input:focus::placeholder,
.comment-form textarea:focus::placeholder {
    opacity: 0.5;
}

.comment-form textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}

.comment-form .required {
    color: var(--primary-color);
    font-weight: 700;
}

.comment-form .form-submit {
    margin-top: 1.5rem;
}

.comment-form .submit {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--hover-color) 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comment-form .submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.comment-form .submit:active {
    transform: translateY(-1px);
}

/* Comment Form Fields Grid */
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .comment-form .comment-form-author,
    .comment-form .comment-form-email {
        display: inline-block;
        width: calc(50% - 0.75rem);
        vertical-align: top;
    }
    
    .comment-form .comment-form-author {
        margin-right: 1.5rem;
    }
}

/* Comment Form Cookies */
.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.comment-form-cookies-consent label {
    margin: 0;
    font-weight: 400;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    cursor: pointer;
}

/* Comment Form Notes */
.comment-notes {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fff;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.no-comments {
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    color: #666;
    text-align: center;
    border: 2px dashed var(--border-color);
}

/* Comment Navigation */
.comment-navigation {
    margin: 2.5rem 0;
    text-align: center;
}

.comment-navigation .nav-links {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.comment-navigation .nav-previous a,
.comment-navigation .nav-next a {
    padding: 0.75rem 1.5rem;
    background: #fff;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.comment-navigation .nav-previous a:hover,
.comment-navigation .nav-next a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Nested Comments */
.comment-list .children {
    list-style: none;
    margin: 1.5rem 0 0 0;
    padding-left: 2rem;
    border-left: 3px solid var(--primary-color);
}

.comment-list .children .comment {
    background: #fff;
    border: 1px solid var(--border-color);
}

/* Comment Edit Link */
.comment-body .edit-link {
    margin-left: 0.5rem;
}

.comment-body .edit-link a {
    color: #999;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}

.comment-body .edit-link a:hover {
    color: var(--primary-color);
}

/* Cancel Reply Link */
#cancel-comment-reply-link {
    display: inline-block;
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    color: #666;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
}

#cancel-comment-reply-link:hover {
    background: #e0e0e0;
    color: var(--text-color);
}

.cancel-reply-text {
    display: inline-block;
}

/* Responsive Comments */
@media (max-width: 768px) {
    .comment-body {
        flex-direction: column;
        gap: 1rem;
    }
    
    .comment-author-avatar {
        align-self: flex-start;
    }
    
    .comment-form {
        padding: 1.5rem;
    }
    
    .comment-form .comment-form-author,
    .comment-form .comment-form-email {
        width: 100%;
        margin-right: 0;
    }
    
    .comment-list .children {
        padding-left: 1rem;
    }
}

