/* ==========================================================================
   İZKA Tercüme Odası - Public Styles v3.0
   ========================================================================== */

/* ---------- Forms ---------- */
.izka-form-wrap {
    max-width: 440px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.izka-social-divider, .izka-social-buttons {
	display:none !important;
}

.izka-form-wrap h2 {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.izka-form-group {
    margin-bottom: 1rem;
}

.izka-form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.izka-form-group input[type="text"],
.izka-form-group input[type="email"],
.izka-form-group input[type="password"],
.izka-form-group input[type="tel"] {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.izka-form-group input:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

.izka-form-group input:disabled {
    background: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}

.izka-field-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #888;
}

/* Form row (side-by-side fields) */
.izka-form-row {
    display: flex;
    gap: 0.75rem;
}

.izka-form-group.izka-half {
    flex: 1;
}

/* Checkbox group */
.izka-checkbox-group {
    text-align: center;
}

.izka-checkbox-group label {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: normal;
    font-size: 0.85rem;
    cursor: pointer;
}

.izka-checkbox-group input[type="checkbox"] {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.izka-btn {
    display: block !important;
    width: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0.7rem 1.5rem;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center !important;
    transition: background 0.2s;
    float: none !important;
}

.izka-btn:hover {
    background: #135e96;
}

.izka-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Force button centering inside forms (theme override protection) */
.izka-form-wrap form {
    text-align: center !important;
}

.izka-form-wrap .izka-form-group {
    text-align: left;
}

.izka-form-message {
    padding: 0.6rem 0.75rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    display: none;
}

.izka-form-message.izka-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.izka-form-message.izka-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.izka-form-links {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.izka-form-links a {
    color: #2271b1;
    text-decoration: none;
}

.izka-form-links a:hover {
    text-decoration: underline;
}

/* ---------- Social / Google Buttons ---------- */
.izka-social-divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
    color: #999;
    font-size: 0.85rem;
}

.izka-social-divider::before,
.izka-social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.izka-social-divider span {
    padding: 0 0.75rem;
}

.izka-social-buttons {
    display: flex;
    justify-content: center;
}

.izka-google-btn {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    font-weight: 500;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: auto;
    transition: background 0.2s, box-shadow 0.2s;
}

.izka-google-btn:hover {
    background: #f8f8f8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ---------- Publications Container ---------- */
.izka-publications-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ---------- Publications Grid ---------- */
.izka-publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

a.izka-publication-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

a.izka-publication-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.izka-publication-card .izka-card-thumbnail {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.izka-publication-card .izka-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.izka-publication-card .izka-card-thumbnail .izka-no-thumb {
    font-size: 3rem;
    color: #ccc;
}

/* Verification badge overlay */
.izka-verify-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(34, 113, 177, 0.9);
    color: #fff;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

a.izka-publication-card.izka-needs-verify:hover .izka-verify-badge {
    background: rgba(19, 94, 150, 0.95);
}

.izka-publication-card .izka-card-body {
    padding: 1rem;
}

.izka-publication-card .izka-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    line-height: 1.3;
}

a.izka-publication-card:hover .izka-card-title {
    color: #2271b1;
}

.izka-publication-card .izka-card-category {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.izka-publication-card .izka-card-date {
    font-size: 0.8rem;
    color: #999;
}

/* ---------- Single Publication ---------- */
.izka-single-publication {
    max-width: 900px;
    margin: 2rem auto;
}

.izka-single-publication h1 {
    margin-bottom: 0.5rem;
}

.izka-single-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.izka-pdf-viewer {
    width: 100%;
    height: 80vh;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.izka-login-required {
    text-align: center;
    padding: 3rem 2rem;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.izka-login-required p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.izka-login-required .izka-btn {
    width: auto;
    display: inline-block;
    margin: 0 auto;
}

/* ---------- Auth Menu ---------- */
.izka-auth-menu {
    position: relative;
}

.skip-link {
    display: none;
}

.izka-auth-menu > a {
    display: flex !important;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.izka-auth-label {
    font-family: "Labrada", Sans-serif;
    font-size: 17px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 20px;
    color:#052126;
}

.izka-auth-menu .izka-auth-submenu,
.izka-auth-menu .sub-menu {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 0.4rem 0;
    min-width: 160px;
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 10000;
    list-style: none;
    margin: 0;
}

.izka-auth-menu:hover > .izka-auth-submenu,
.izka-auth-menu:hover > .sub-menu {
    display: block;
}

.izka-auth-menu .izka-auth-submenu a,
.izka-auth-menu .sub-menu a {
    color: #052126 !important;
    padding: 0.5rem 1rem;
    display: block;
    text-decoration: none;
    font-family: "Labrada", Sans-serif;
    font-size: 17px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 0.3rem 0.5rem;
    text-align: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.izka-auth-menu .izka-auth-submenu a:hover,
.izka-auth-menu .sub-menu a:hover {
    background: #70826e;
    color: #fff !important;
    border-color: #70826e;
}

/* ---------- Header Button ---------- */
.izka-header-btn-wrap {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.izka-header-btn-wrap a {
    display: inline-block;
    padding: 0.45rem 1rem;
    background: #2271b1;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s;
}

.izka-header-btn-wrap a:hover {
    background: #135e96;
}

.izka-header-btn-wrap .izka-welcome {
    color: #333;
    font-weight: 500;
}

.izka-header-btn-wrap a.izka-logout-link {
    background: #dc3545;
}

.izka-header-btn-wrap a.izka-logout-link:hover {
    background: #b02a37;
}

/* ---------- Category Filter ---------- */
.izka-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.izka-category-filter a {
    padding: 0.35rem 0.85rem;
    border: 1px solid #ccc;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.izka-category-filter a:hover,
.izka-category-filter a.active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

/* ---------- Pagination ---------- */
.izka-pagination {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 2rem;
}

.izka-pagination a,
.izka-pagination span {
    padding: 0.4rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
}

.izka-pagination span.current {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.izka-pagination a:hover {
    background: #f0f0f0;
}

/* ---------- Verification Modal ---------- */
.izka-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.izka-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.izka-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.izka-modal-content h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    text-align: center;
}

.izka-modal-desc {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.izka-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
}

.izka-modal-close:hover {
    color: #333;
}

/* ---------- Profile Page ---------- */
.izka-profile-wrap {
    max-width: 600px;
    margin: 2rem auto;
}

.izka-profile-wrap h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.izka-profile-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.izka-profile-section h3 {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.izka-profile-info {
    background: #f9f9f9;
}

.izka-profile-info p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #555;
}

/* ---------- Library ---------- */
.izka-library-wrap {
    max-width: 1500px;
    margin: 0 auto;
    padding: 100px 1rem;
}

.izka-library-wrap h2 {
    text-align: center;
    margin-bottom: 0.75rem;
    font-family: "ferryman", Sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.5em;
}

.izka-library-hr {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2.5rem;
}

.izka-library-hr::before {
    content: '';
    width: 8px;
    height: 8px;
    border: 2px solid #333;
    background: transparent;
    display: block;
}

.izka-library-hr span:first-child {
    width: 60px;
    height: 2px;
    background: #333;
    display: block;
}

.izka-library-hr span:last-child {
    display: none;
}

.izka-library-hr::after {
    content: '';
    width: 8px;
    height: 8px;
    border: 2px solid #333;
    background: transparent;
    display: block;
}

.izka-library-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
}

.izka-library-empty p {
    margin-bottom: 0.5rem;
}

/* ---------- Library Two-Column Layout ---------- */
.izka-library-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.izka-library-col-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    padding: 0.5rem 1rem;
    border-left: 4px solid #70826e;
    background: #f0f2ef;
    display: inline-block;
}

/* Horizontal book card */
.izka-lib-card {
    display: flex;
    gap: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #fff;
}

.izka-lib-card-thumb {
    flex-shrink: 0;
    width: 130px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.izka-lib-card-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.izka-lib-card-thumb .izka-no-thumb {
    font-size: 2.5rem;
    color: #ccc;
}

.izka-lib-card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.izka-lib-card-title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.izka-lib-meta {
    margin: 0.15rem 0;
    font-size: 0.88rem;
    color: #444;
}

.izka-lib-meta strong {
    display: inline-block;
    min-width: 90px;
}

.izka-lib-btn {
    display: inline-flex !important;
    align-items: center;
    margin-top: auto;
    padding: 0.5rem 1rem;
    border: 1px solid #70826e;
    border-radius: 4px;
    color: #70826e !important;
    background: transparent;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    width: fit-content;
    margin-top: 0.75rem;
}

.izka-lib-btn:hover {
    background: #70826e;
    color: #fff !important;
}

.izka-lib-btn svg {
    flex-shrink: 0;
}

/* ---------- Shortcode Buttons ---------- */
.izka-btn-review {
    background: #70826e !important;
    color: #fff !important;
    border: 2px solid #70826e !important;
    display: inline-block !important;
    width: auto !important;
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-align: center;
}

.izka-btn-review:hover {
    background: #5a6b58 !important;
    border-color: #5a6b58 !important;
}

.izka-btn-save {
    background: transparent !important;
    color: #70826e !important;
    border: 2px solid #70826e !important;
    display: inline-block !important;
    width: auto !important;
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-align: center;
}

.izka-btn-save:hover {
    background: #70826e !important;
    color: #fff !important;
}

.izka-btn-save.izka-btn-saved {
    background: #70826e !important;
    color: #fff !important;
}

.izka-btn-save.izka-btn-saved:hover {
    background: #5a6b58 !important;
    border-color: #5a6b58 !important;
}

/* ---------- Loading Spinner ---------- */
.izka-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: izka-spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes izka-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    .izka-form-wrap {
        margin: 1rem;
        padding: 1.25rem;
    }

    .izka-form-row {
        flex-direction: column;
        gap: 0;
    }

    .izka-publications-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .izka-header-btn-wrap {
        top: 10px;
        right: 10px;
        font-size: 0.8rem;
    }

    .izka-modal-content {
        padding: 1.5rem;
        width: 95%;
    }

    .izka-profile-wrap {
        margin: 1rem;
    }

    .izka-profile-section {
        padding: 1rem;
    }

    .izka-library-columns {
        grid-template-columns: 1fr;
    }

    .izka-lib-card {
        flex-direction: column;
    }

    .izka-lib-card-thumb {
        width: 100%;
        max-width: 160px;
    }
}
