/* ===========================================
   AKB Akvaryum Hesaplayıcı - Aquatic Theme
   =========================================== */

:root {
    --akbh-deep: #0a2e36;
    --akbh-ocean: #0e4a3e;
    --akbh-water: #1a8a7d;
    --akbh-light: #2dd4a8;
    --akbh-glow: rgba(45, 212, 168, 0.15);
    --akbh-bg: #f0f7f5;
    --akbh-card: #ffffff;
    --akbh-text: #1a2e2a;
    --akbh-text-soft: #5f7a74;
    --akbh-border: #d4e8e2;
    --akbh-font: 'Segoe UI', -apple-system, sans-serif;
    --akbh-radius: 14px;
    --akbh-transition: 0.25s ease;
}

/* ---- Floating Button ---- */
#akb-hesap-float-btn {
    position: fixed;
    bottom: 92px;
    right: 24px;
    z-index: 99996;
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, var(--akbh-ocean), var(--akbh-water));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(14, 74, 62, 0.35);
    transition: all var(--akbh-transition);
}

#akb-hesap-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(14, 74, 62, 0.5);
}

/* ---- Popup ---- */
#akb-hesap-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: akbhFadeIn 0.3s ease;
}

#akb-hesap-popup.akb-hesap-hidden {
    display: none;
}

@keyframes akbhFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.akb-hesap-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 46, 54, 0.6);
    backdrop-filter: blur(4px);
}

.akb-hesap-modal {
    position: relative;
    width: 94%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--akbh-bg);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    animation: akbhSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    scrollbar-width: thin;
}

@keyframes akbhSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.akb-hesap-close {
    position: sticky;
    top: 12px;
    float: right;
    margin: 12px 12px 0 0;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0,0,0,0.06);
    border-radius: 50%;
    font-size: 22px;
    color: var(--akbh-text-soft);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--akbh-transition);
    line-height: 1;
    padding: 0;
}

.akb-hesap-close:hover {
    background: rgba(0,0,0,0.12);
    color: var(--akbh-text);
}

/* ---- Container ---- */
.akb-hesap-container {
    padding: 0 28px 28px;
    font-family: var(--akbh-font);
}

/* ---- Header ---- */
.akb-hesap-header {
    text-align: center;
    padding: 10px 0 20px;
}

.akb-hesap-header-icon {
    font-size: 40px;
    margin-bottom: 6px;
}

.akb-hesap-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--akbh-deep);
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
}

.akb-hesap-subtitle {
    font-size: 13px;
    color: var(--akbh-text-soft);
    margin: 0;
}

/* ---- Tabs ---- */
.akb-hesap-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 4px;
    background: var(--akbh-card);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--akbh-border);
    scrollbar-width: none;
}

.akb-hesap-tabs::-webkit-scrollbar {
    display: none;
}

.akb-hesap-tab {
    flex-shrink: 0;
    padding: 9px 14px;
    border: none;
    background: transparent;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--akbh-text-soft);
    cursor: pointer;
    transition: all var(--akbh-transition);
    font-family: var(--akbh-font);
    white-space: nowrap;
}

.akb-hesap-tab:hover {
    background: var(--akbh-glow);
    color: var(--akbh-ocean);
}

.akb-hesap-tab.active {
    background: var(--akbh-ocean);
    color: #fff;
    box-shadow: 0 2px 8px rgba(14, 74, 62, 0.3);
}

/* ---- Panels ---- */
.akb-hesap-panel {
    display: none;
    background: var(--akbh-card);
    border-radius: var(--akbh-radius);
    padding: 24px;
    border: 1px solid var(--akbh-border);
    animation: akbhPanelIn 0.3s ease;
}

.akb-hesap-panel.active {
    display: block;
}

@keyframes akbhPanelIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.akb-hesap-panel h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--akbh-deep);
    margin: 0 0 18px 0;
}

/* ---- Form ---- */
.akb-hesap-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.akb-hesap-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.akb-hesap-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--akbh-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.akb-hesap-field input,
.akb-hesap-field select {
    padding: 10px 12px;
    border: 1.5px solid var(--akbh-border);
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--akbh-font);
    color: var(--akbh-text);
    background: var(--akbh-bg);
    outline: none;
    transition: all var(--akbh-transition);
    width: 100%;
    box-sizing: border-box;
}

.akb-hesap-field input:focus,
.akb-hesap-field select:focus {
    border-color: var(--akbh-water);
    background: #fff;
    box-shadow: 0 0 0 3px var(--akbh-glow);
}

/* ---- Button ---- */
.akb-hesap-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(145deg, var(--akbh-ocean), var(--akbh-water));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--akbh-font);
    cursor: pointer;
    transition: all var(--akbh-transition);
    letter-spacing: 0.01em;
}

.akb-hesap-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(14, 74, 62, 0.3);
}

/* ---- Results ---- */
.akb-hesap-sonuc {
    margin-top: 18px;
    padding: 0;
    transition: all var(--akbh-transition);
}

.akb-hesap-sonuc:empty {
    display: none;
}

.akb-sonuc-card {
    background: linear-gradient(145deg, var(--akbh-deep), var(--akbh-ocean));
    border-radius: 12px;
    padding: 20px;
    color: #fff;
}

.akb-sonuc-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 14px 0;
    opacity: 0.8;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.akb-sonuc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.akb-sonuc-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.akb-sonuc-item .value {
    font-size: 24px;
    font-weight: 800;
    color: var(--akbh-light);
    display: block;
    line-height: 1.2;
}

.akb-sonuc-item .label {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 4px;
    display: block;
}

.akb-sonuc-full {
    grid-column: 1 / -1;
}

.akb-sonuc-tip {
    margin-top: 14px;
    padding: 12px;
    background: rgba(45, 212, 168, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--akbh-light);
    font-size: 12.5px;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
}

.akb-sonuc-tip strong {
    color: var(--akbh-light);
}

/* ---- Footer ---- */
.akb-hesap-footer {
    text-align: center;
    margin-top: 20px;
}

.akb-hesap-shop-link {
    display: inline-block;
    padding: 10px 24px;
    background: var(--akbh-glow);
    color: var(--akbh-ocean);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--akbh-transition);
}

.akb-hesap-shop-link:hover {
    background: var(--akbh-ocean);
    color: #fff;
}

/* ---- Mobile ---- */
@media (max-width: 480px) {
    .akb-hesap-modal {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        height: 100%;
    }

    .akb-hesap-container {
        padding: 0 16px 16px;
    }

    .akb-hesap-form-grid {
        grid-template-columns: 1fr;
    }

    .akb-sonuc-grid {
        grid-template-columns: 1fr 1fr;
    }

    .akb-hesap-tab {
        padding: 8px 10px;
        font-size: 11.5px;
    }

    #akb-hesap-float-btn {
        bottom: 84px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
}

/* ---- Dark Mode ---- */
[data-wp-dark-mode-active="true"] {
    --akbh-bg: #0f1a18;
    --akbh-card: #162220;
    --akbh-text: #d4e8e2;
    --akbh-text-soft: #7a9990;
    --akbh-border: #243835;
}

[data-wp-dark-mode-active="true"] .akb-hesap-field input,
[data-wp-dark-mode-active="true"] .akb-hesap-field select {
    background: #1a2e2a;
    color: #d4e8e2;
    border-color: #2a4a42;
}

[data-wp-dark-mode-active="true"] .akb-hesap-overlay {
    background: rgba(0, 0, 0, 0.7);
}
