/* Hero Bölümü */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 4rem 0;
    color: #fff;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y=".9em" font-size="90">📚</text></svg>') center/50px repeat;
    opacity: 0.1;
    animation: slide 20s linear infinite;
}

@keyframes slide {
    from { transform: translateX(0); }
    to { transform: translateX(50px); }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.4rem);
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    line-height: 1.5;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: #fff;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 160px;
    justify-content: center;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.cta-button.secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    backdrop-filter: blur(10px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    min-width: 120px;
}

.stat-value {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    display: block;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    opacity: 0.9;
}

/* Bölüm Başlıkları */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--secondary-color);
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all:hover {
    color: #e64a19;
    transform: translateX(5px);
}

/* Kategoriler */
.categories {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: clamp(1rem, 2vw, 2rem);
}

.category-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: var(--primary-color);
    color: #fff;
}

.category-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.story-count {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* Son Eklenen Hikayeler */
.latest-stories {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.story-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.story-image {
    aspect-ratio: 16/9;
    position: relative;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.story-category span {
    color: #fff;
    font-size: 0.9rem;
}

.story-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.story-card h3 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.author span {
    color: var(--primary-color);
    font-weight: 500;
}

.story-meta {
    margin-top: auto;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* Katılma CTA */
.join-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: clamp(2rem, 5vw, 4rem) 0;
    color: #fff;
    text-align: center;
    margin: 3rem 0;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.join-cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.join-cta p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Footer */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-info h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-info p {
    opacity: 0.8;
}

.footer-links h4, .footer-categories h4, .footer-social h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-links ul, .footer-categories ul {
    list-style: none;
}

.footer-links ul li, .footer-categories ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a, .footer-categories ul li a {
    color: #fff;
    opacity: 0.8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover, .footer-categories ul li a:hover {
    opacity: 1;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Kullanıcı Arama */
.user-search {
    margin-top: 3rem;
    text-align: center;
}

.user-search h2 {
    color: #fff;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.search-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 1rem;
}

.search-box {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    padding: 0.8rem 1.2rem;
    color: #fff;
    font-size: 1rem;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box button {
    background: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(90deg);
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        text-align: center;
    }

    .section-header h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        padding: 1rem;
    }

    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-button {
        width: 100%;
    }

    .search-form {
        padding: 0 1.5rem;
    }
    
    .search-box {
        padding: 0.3rem;
    }
    
    .search-box input {
        padding: 0.6rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat {
        min-width: 100px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Header Responsive Tasarım */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.mobile-menu-button {
    display: none;
}

.mobile-nav {
    display: none;
}

@media (max-width: 768px) {
    header {
        box-shadow: none;
    }

    nav {
        padding: 1rem;
    }

    nav ul {
        display: none;
    }

    .mobile-nav {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .mobile-nav ul {
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 0.8rem;
        margin: 0;
        list-style: none;
    }

    .mobile-nav ul li a {
        color: var(--secondary-color);
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .mobile-nav ul li a i {
        font-size: 1.2rem;
    }

    .mobile-nav ul li a.active {
        color: var(--primary-color);
    }

    main {
        margin-bottom: 70px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }
} 