/* Reset ve genel stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Topbar */
.topbar {
    background-color: #f8f9fa;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.topbar .container {
    display: flex;
    justify-content: flex-end;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn i {
    font-size: 0.9rem;
}

.btn-login {
    background-color: transparent;
    color: #3498db;
    border: 1px solid #3498db;
}

.btn-login:hover {
    background-color: #3498db;
    color: white;
}

.btn-register {
    background-color: #3498db;
    color: white;
}

.btn-register:hover {
    background-color: #2980b9;
}

/* Main Navigation */
.main-nav {
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
    text-align: center;
}

.logo h1 br {
    display: block;
    content: "";
    margin: 0.2rem 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:hover {
    color: #3498db;
}

.nav-links a.active {
    color: #3498db;
    font-weight: 600;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3498db;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2c3e50;
    cursor: pointer;
    padding: 0.5rem;
}

/* Responsive Header */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 0.5rem 0;
    }

    .nav-links a.active::after {
        display: none;
    }

    .nav-links a.active {
        background-color: #f8f9fa;
        padding: 0.5rem 1rem;
        border-radius: 4px;
    }

    .mobile-menu-btn.active i::before {
        content: "\f00d";
    }

    .logo h1 {
        font-size: 2rem;
    }
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Footer */
footer {
    background-color: #34495e;
    color: #ecf0f1;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Footer Styles */
.footer {
    background-color: #34495e;
    color: #ecf0f1;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: #ffffff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* GitHub */
.social-link.github {
    background-color: #24292e;
}

.social-link.github:hover {
    background-color: #333;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* LinkedIn */
.social-link.linkedin {
    background-color: #0077b5;
}

.social-link.linkedin:hover {
    background-color: #006699;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* X (Twitter) */
.social-link.x {
    background-color: #000000;
}

.social-link.x:hover {
    background-color: #333;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.social-link.x .x-icon {
    width: 1.2em;
    height: 1.2em;
    color: #ffffff;
}

.social-link.x i {
    font-size: 1.8rem;
    font-weight: bold;
}

/* Instagram */
.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    filter: brightness(1.1);
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: #bdc3c7;
    margin-top: 1rem;
}

.copyright p {
    margin: 0;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        font-size: 1.2rem;
        width: 40px;
        height: 40px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
    }
    
    .container {
        width: 95%;
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background-color: #f8f9fa;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Posts */
.featured-posts {
    margin-bottom: 4rem;
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card h3 {
    color: #333;
    margin-bottom: 1rem;
}

.post-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0056b3;
}

/* About Me Section */
.about-me {
    background-color: #f8f9fa;
    padding: 3rem 0;
    margin-top: 3rem;
}

.about-me h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.about-me p {
    max-width: 800px;
    margin: 0 auto;
    color: #666;
    line-height: 1.8;
}

/* İletişim Sayfası Stilleri */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info h2,
.contact-form h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.info-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    font-size: 1.5rem;
    color: #3498db;
    width: 30px;
    text-align: center;
}

.info-item h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.info-item p {
    color: #666;
    margin: 0;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.social-card {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    color: #2c3e50;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.social-card i {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #3498db;
}

.social-card span {
    display: block;
    font-size: 0.9rem;
}

.form-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.btn-submit {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background-color: #2980b9;
}

/* Responsive İletişim Sayfası */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .info-card,
    .form-card {
        padding: 1.5rem;
    }
}

/* Ödev Kartı Stilleri */
.assignment-card {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.assignment-card h2 {
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.assignment-card h2 i {
    font-size: 1.5rem;
}

.assignment-card p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.btn-assignment {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: white;
    color: #3498db;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-assignment:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-assignment i {
    font-size: 0.9rem;
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.1;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 2.5rem;
    margin: 0;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.page-header p {
    text-align: center;
    margin: 1rem 0 0;
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Page Header */
@media (max-width: 768px) {
    .page-header {
        padding: 2rem 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
}

/* Alert Styles */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-weight: 500;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
} 