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

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #f9f9f9;
    --dark-color: #333;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --gray-light: #ecf0f1;
    --gray-medium: #bdc3c7;
    --gray-dark: #7f8c8d;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--dark-color);
    background-color: #fff;
    overflow-x: hidden;
}

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

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
}

.logo i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 10px;
}

.logo-text {
    font-size: 1.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 5px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

nav ul li a i {
    margin-right: 8px;
    font-size: 1.1rem;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
    background-color: rgba(52, 152, 219, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
}

/* Main Content */
main {
    padding: 40px 0;
}

.page-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 0 0 20px 20px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: white;
}

.page-header p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 25px;
    opacity: 0.9;
}

.section {
    margin-bottom: 60px;
}

.section h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.section h2:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
}

.section h3 {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin: 25px 0 15px;
}

.section h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 20px 0 10px;
}

.section p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.card ul {
    padding-left: 20px;
    margin: 15px 0;
}

.card ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(52, 152, 219, 0.3);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

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

.btn-success:hover {
    background-color: #27ae60;
}

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

/* Code Examples */
.code-example {
    background-color: #282c34;
    color: #abb2bf;
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
    overflow-x: auto;
    position: relative;
    box-shadow: var(--shadow);
}

.code-example pre {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.code-example .comment {
    color: #5c6370;
    font-style: italic;
}

.code-example .keyword {
    color: #c678dd;
}

.code-example .function {
    color: #61afef;
}

.code-example .string {
    color: #98c379;
}

.code-example .number {
    color: #d19a66;
}

.copy-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.copy-btn:hover {
    background-color: #2980b9;
}

/* Highlight Box */
.highlight {
    background-color: rgba(52, 152, 219, 0.1);
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 25px 0;
}

.highlight p {
    margin: 0;
    color: var(--secondary-color);
}

/* Breadcrumb */
.breadcrumb {
    margin: 20px 0 40px;
    font-size: 0.95rem;
    color: var(--gray-dark);
}

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

.breadcrumb span {
    color: var(--gray-dark);
}

/* FAQ */
.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background-color: var(--gray-light);
    padding: 20px;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: #e0e6ea;
}

.faq-question.active {
    background-color: var(--primary-color);
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background-color: white;
}

.faq-answer.active {
    max-height: 1000px;
    padding: 20px;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0 30px;
    margin-top: 60px;
}

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

.footer-section h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.footer-section p {
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-section ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

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

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

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav {
        width: 100%;
        margin-top: 20px;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
        display: none;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 0 0 10px 0;
    }
    
    nav ul li a {
        padding: 12px 20px;
        background-color: var(--gray-light);
        border-radius: 8px;
    }
    
    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 25px;
        right: 20px;
    }
    
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .section h2 {
        font-size: 1.6rem;
    }
    
    .btn-large {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* Blog-like Content for Mobile */
@media (max-width: 768px) {
    .section p, .section ul, .section ol {
        font-size: 1.1rem;
        line-height: 1.8;
    }
    
    .section p {
        margin-bottom: 1.2rem;
    }
    
    .section ul, .section ol {
        padding-left: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .section li {
        margin-bottom: 0.8rem;
    }
    
    .card {
        padding: 20px;
        margin-bottom: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    
    .card:hover {
        transform: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section, .card {
    animation: fadeIn 0.5s ease forwards;
}