.chapters-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    min-height: calc(100vh - 200px); /* Footer için alan bırak */
}

.story-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ff5722 0%, #ff7043 100%);
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(255, 87, 34, 0.15);
}

.story-header img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.story-info {
    flex: 1;
}

.story-info h1 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.story-info .author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.story-info .author i {
    color: #fff;
}

.back-to-story {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-to-story:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.chapters-list {
    display: grid;
    gap: 1.2rem;
}

.chapter-card {
    position: relative;
    background: #fff;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.chapter-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.chapter-link {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.chapter-actions {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chapter-card:hover .chapter-actions {
    opacity: 1;
}

.edit-button, .delete-button {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.edit-button {
    background: var(--primary-color);
    color: white;
}

.delete-button {
    background: #dc3545;
    color: white;
}

.edit-button:hover {
    background: #e65100;
    transform: scale(1.1);
}

.delete-button:hover {
    background: #c82333;
    transform: scale(1.1);
}

.chapter-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff5722 0%, #ff7043 100%);
    border-radius: 16px;
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;
    margin-right: 1.8rem;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.2);
}

.chapter-info {
    flex: 1;
}

.chapter-info h2 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.chapter-info p {
    color: #666;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.chapter-arrow {
    color: #ff5722;
    font-size: 1.4rem;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.chapter-card:hover .chapter-arrow {
    transform: translateX(5px);
    opacity: 1;
}

.no-chapters {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 20px;
    border: 2px dashed #ff5722;
    margin: 2rem 0;
}

.no-chapters i {
    font-size: 4rem;
    color: #ff5722;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.no-chapters p {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.add-chapter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff5722 0%, #ff7043 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.2);
}

.add-chapter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.3);
}

/* Footer Tasarımı */
.footer {
    background: #2c3e50;
    padding: 3rem 0;
    margin-top: 4rem;
    color: #fff;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand img {
    height: 40px;
    width: auto;
}

.footer-brand p {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-links h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #ff5722;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
}

@media (max-width: 768px) {
    .chapters-container {
        margin: 1rem auto;
    }

    .story-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .story-header h1 {
        font-size: 1.6rem;
    }

    .back-to-story {
        width: 100%;
        justify-content: center;
    }

    .chapter-card {
        padding: 1.2rem;
    }

    .chapter-number {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
        margin-right: 1rem;
    }

    .chapter-info h2 {
        font-size: 1.1rem;
    }

    .chapter-arrow {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .chapter-navigation {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 10px;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        margin: 0;
        border-top: none;
        z-index: 999;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
    }

    .nav-button {
        flex: 1;
        padding: 8px;
        font-size: 0.9rem;
        border-radius: 6px;
        min-width: 0;
        white-space: nowrap;
        justify-content: center;
    }

    .nav-button i {
        font-size: 1.1rem;
    }

    .all-chapters {
        max-width: 120px;
    }

    body.dark-mode .chapter-navigation {
        background: #1a1a1a;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    }

    .chapter-container {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .chapter-navigation {
        padding: 8px;
    }

    .nav-button {
        padding: 6px;
        font-size: 0.85rem;
    }

    .nav-button i {
        font-size: 1rem;
    }

    .all-chapters {
        max-width: 100px;
    }
}

/* Dark Mode */
body.dark-mode .chapter-card {
    background: #1a1c23;
    border-color: #2c3e50;
}

body.dark-mode .chapter-card:hover {
    border-color: #ff5722;
}

body.dark-mode .chapter-info h2 {
    color: #fff;
}

body.dark-mode .chapter-info p {
    color: #bdc3c7;
}

body.dark-mode .no-chapters {
    background: #1a1c23;
    border-color: #ff5722;
}

body.dark-mode .no-chapters p {
    color: #fff;
}

.reading-options {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.reading-options button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.reading-options button:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
}

body.dark-mode {
    background-color: #1a1a1a;
    color: #ffffff;
}

body.dark-mode .chapter-card {
    background-color: #2d2d2d;
    border-color: #3d3d3d;
}

body.dark-mode .chapter-info h2 {
    color: #ffffff;
}

body.dark-mode .chapter-info p {
    color: #cccccc;
}

@media (max-width: 768px) {
    .reading-options {
        bottom: 70px;
        right: 50%;
        transform: translateX(50%);
    }
}

body.dark-mode .reading-options {
    background: rgba(45, 45, 45, 0.9);
}

body.dark-mode .reading-options button {
    background: #ff5722;
    color: #fff;
}

body.dark-mode .reading-options button:hover {
    background: #ff7043;
}