/* Wrapper ve Konteyner */
.fx-dictionary-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.fx-dictionary-section {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 300px);
    position: relative;
}

.fx-book-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 700px;
    margin: 40px auto;
    perspective: 1000px;
    overflow: hidden;
}

#fx-dictionary-book {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    z-index: 1;
}

.page {
    background: #fff;
    padding: 40px;
    box-shadow: inset -1px 0 15px rgba(0, 0, 0, 0.1);
    position: absolute;
    overflow-y: auto;
}

.hard {
    background: #0d1d2c !important;
    color: #fff !important;
    padding: 0;
}

/* Kapak Tasarımı */
.fx-book-cover {
    background: linear-gradient(135deg, #0d1d2c 0%, #34495e 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

    .fx-book-cover h1 {
        font-size: 3rem;
        text-align: center;
        margin: 0;
        padding: 20px;
        position: relative;
        z-index: 2;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

.fx-cover-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.1;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fx-cover-icon {
    width: 300px;
    height: auto;
}

.fx-inner-cover {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fff;
    color: #0d1d2c;
}

    .fx-inner-cover h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .fx-inner-cover p {
        font-size: 1.2rem;
        font-style: italic;
    }

.fx-back-cover {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    background: linear-gradient(135deg, #34495e 0%, #0d1d2c 100%);
}

.fx-logo {
    width: 200px;
    margin-bottom: auto;
    margin-top: 100px;
}

    .fx-logo img {
        width: 100%;
        height: auto;
    }

.fx-dictionary-letter {
    margin-bottom: 30px;
}

    .fx-dictionary-letter h2 {
        font-size: 4rem;
        color: #0f9c2a;
        margin-bottom: 30px;
        border-bottom: 3px solid #0f9c2a;
        display: inline-block;
        padding-bottom: 10px;
    }

.fx-dictionary-term {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    max-height: 200px;
    overflow-y: auto;
}

    .fx-dictionary-term:hover {
        transform: translateX(10px);
        background: #fff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    .fx-dictionary-term h3 {
        color: #0d1d2c;
        font-size: 1.25rem;
        margin-bottom: 10px;
        font-weight: 600;
    }

    .fx-dictionary-term p {
        color: #666;
        line-height: 1.6;
        margin: 0;
        font-size: 1rem;
    }

.fx-book-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.fx-prev-btn,
.fx-next-btn {
    padding: 10px 20px;
    background: #0f9c2a;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .fx-prev-btn:hover,
    .fx-next-btn:hover {
        background: #0d1d2c;
    }

.fx-dictionary-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.fx-loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0f9c2a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.fx-dictionary-nav {
    position: fixed;
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

    .fx-dictionary-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .fx-dictionary-nav a {
        color: #666;
        text-decoration: none;
        font-size: 1.1rem;
        padding: 5px 15px;
        border-radius: 5px;
        transition: all 0.3s ease;
        display: block;
    }

        .fx-dictionary-nav a:hover,
        .fx-dictionary-nav a.active {
            color: #0f9c2a;
            background: rgba(15, 156, 42, 0.1);
        }

#fx-dictionary-book .turn-page {
    background-color: #fff;
}

#fx-dictionary-book .hard {
    background: #0d1d2c !important;
    color: #fff !important;
}

#fx-dictionary-book .page-wrapper {
    perspective: 2000px;
}

#fx-dictionary-book .turn-page {
    transform-style: preserve-3d;
    transition-property: transform;
}

    #fx-dictionary-book .turn-page.hard {
        background: #0d1d2c !important;
        color: #fff !important;
    }

        #fx-dictionary-book .turn-page.hard.even {
            border-radius: 0 10px 10px 0;
        }

        #fx-dictionary-book .turn-page.hard.odd {
            border-radius: 10px 0 0 10px;
        }

@media (max-width: 1600px) {
    .fx-book-wrapper {
        height: 600px;
    }
}

@media (max-width: 992px) {
    .fx-book-wrapper {
        height: 450px;
    }

    .fx-dictionary-nav {
        position: static;
        transform: none;
        margin: 20px auto;
        width: fit-content;
    }

        .fx-dictionary-nav ul {
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: center;
        }

    .fx-book-cover h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .fx-book-wrapper {
        height: 300px;
    }

    .fx-dictionary-letter h2 {
        font-size: 3rem;
    }

    .page {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .fx-book-wrapper {
        height: 225px;
    }

    .fx-book-cover h1 {
        font-size: 1.5rem;
    }

    .fx-dictionary-nav a {
        font-size: 0.9rem;
        padding: 3px 10px;
    }
}
