/* Theme layer: keeps existing Bootstrap layout stable, removes inline styles.
   Loaded after assets/css/style.min.css.
*/

:root {
    --site-gradient-primary: linear-gradient(135deg, #0f5c6e 0%, #1b8f8a 55%, #f3a43f 120%);
    --site-gradient-soft-a: linear-gradient(135deg, #ffffff 0%, #e6f8f4 100%);
    --site-gradient-soft-b: linear-gradient(135deg, #e6f8f4 0%, #ffffff 100%);
    --site-gradient-soft-c: linear-gradient(135deg, #f7f8fa 0%, #e6f8f4 100%);

    --site-shadow-primary-soft: 0 2px 12px rgba(0, 123, 143, 0.2);
    --site-shadow-success-soft: 0 2px 12px rgba(0, 150, 136, 0.2);
}

/* Page marker */
body.page-index,
body.page-index-php {
    /* allow future home-only tweaks */
}

/* A11y: keep skip link visible when focused */
.sr-only-focusable:active,
.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Modernize fixed navbar slightly without changing structure */
.navbar.bg-dark {
    background: linear-gradient(135deg, #0c2a34 0%, #163b46 60%, #204b56 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar.bg-dark .nav-link {
    border-radius: 999px;
}

.navbar.bg-dark .nav-link:hover,
.navbar.bg-dark .nav-link:focus {
    background: rgba(255, 255, 255, 0.08);
}

/* Give content breathing room under fixed nav (in case height changes slightly) */
.content-wrapper {
    margin-top: 76px;
}

@media (max-width: 991px) {
    .content-wrapper {
        margin-top: 72px;
    }
}

/* Shared gradient text used across multiple pages */
.text-gradient,
.text-gradient-modern {
    background: linear-gradient(90deg, #0d6efd 0%, #6610f2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Coffee-themed gradient variant */
.text-gradient-modern {
    background: linear-gradient(90deg, #a0522d 0%, #0d6efd 100%);
}

/* Gradient backgrounds used as badges/headers */
.bg-gradient-primary {
    background: linear-gradient(90deg, #0d6efd 0%, #6610f2 100%);
    color: #fff;
}

.bg-gradient-success {
    background: linear-gradient(90deg, #28a745 0%, #0d6efd 100%);
    color: #fff;
}

.bg-gradient-warning {
    background: linear-gradient(90deg, #ffc107 0%, #a0522d 100%);
    color: #212529;
}

.bg-gradient-info {
    background: linear-gradient(90deg, #17a2b8 0%, #0d6efd 100%);
    color: #212529;
}

.bg-gradient-danger {
    background: linear-gradient(90deg, #dc3545 0%, #6610f2 100%);
    color: #fff;
}

/* A modern CTA button used on Kahve Falı page */
.btn-modern {
    background: linear-gradient(90deg, #a0522d 0%, #0d6efd 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 10px rgba(13, 110, 253, 0.18);
    transition: background 0.3s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-modern:hover,
.btn-modern:focus {
    background: linear-gradient(90deg, #0d6efd 0%, #a0522d 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(160, 82, 45, 0.2);
    transform: scale(1.04);
}

/* Hover utilities previously inline */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.hover-bg-primary:hover {
    background-color: #e7f1ff !important;
    border-color: #0d6efd !important;
}

/* Sticky offsets used by blog/dictionary sidebars */
.sticky-top {
    top: 100px;
}

/* Sticky sidebar helper (kahve falı) */
.sticky-sidebar {
    position: sticky;
    top: 100px;
    z-index: 2;
}

/* Search bar on Tüm Rüyalar page (migrated from inline CSS) */
.dream-search-bar {
    max-width: 420px;
    margin: 0 auto 32px auto;
    box-shadow: 0 2px 12px rgba(0, 123, 143, 0.08);
    border-radius: 12px;
    background: #fff;
    padding: 12px 18px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.dream-search-bar input {
    border: none;
    outline: none;
    font-size: 1em;
    flex: 1;
    background: transparent;
}

.dream-search-bar button {
    background: #007b8f;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dream-search-bar button:hover {
    background: #009688;
}

/* Dream share buttons (all-dreams cards) */
.dream-share {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

.dream-share-btn {
    background: #e6f8f4;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 1.2em;
    color: #007b8f;
    text-decoration: none;
}

.dream-share-btn:hover {
    background: #007b8f;
    color: #fff;
}

/* Size utilities to replace repeated inline width/height */
.size-32 { width: 32px; height: 32px; }
.size-40 { width: 40px; height: 40px; }
.size-50 { width: 50px; height: 50px; }
.size-56 { width: 56px; height: 56px; }
.size-60 { width: 60px; height: 60px; }
.size-64 { width: 64px; height: 64px; }
.size-80 { width: 80px; height: 80px; }
.size-88 { width: 88px; height: 88px; }
.size-100 { width: 100px; height: 100px; }
.size-120 { width: 120px; height: 120px; }
.size-140 { width: 140px; height: 140px; }
.size-150 { width: 150px; height: 150px; }
.size-160 { width: 160px; height: 160px; }
.size-180 { width: 180px; height: 180px; }
.size-200 { width: 200px; height: 200px; }
.size-220 { width: 220px; height: 220px; }

/* Common drop shadow for icon images */
.img-dropshadow {
    filter: drop-shadow(0 2px 8px rgba(0, 123, 143, 0.33));
}

/* Soft gradient panels used in about/contact */
.bg-soft-a { background: var(--site-gradient-soft-a) !important; }
.bg-soft-b { background: var(--site-gradient-soft-b) !important; }
.bg-soft-c { background: var(--site-gradient-soft-c) !important; }

.shadow-primary-soft {
    transition: box-shadow 0.2s ease;
    box-shadow: var(--site-shadow-primary-soft);
}

.shadow-success-soft {
    transition: box-shadow 0.2s ease;
    box-shadow: var(--site-shadow-success-soft);
}

/* Tarot card blocks: avoid inline heights */
.tarot-card .card {
    height: 200px;
    border-radius: 1rem;
    cursor: pointer;
}

/* Square icon circles in zodiac pages */
.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-circle.rounded-circle {
    overflow: hidden;
}

/* Reduce inline show/hide usage */
.is-hidden {
    display: none !important;
}

/* Form honeypot helper (contact page) */
.honeypot-field {
    position: absolute;
    left: -9999px;
    top: 0;
}

/* Common hover ring for image placeholders */
.dream-image-placeholder {
    transition: box-shadow 0.2s ease;
}

.dream-image-placeholder:hover {
    box-shadow: 0 0 0 8px rgba(13, 110, 253, 0.13);
}

/* Smaller placeholder variant (home featured cards) */
.dream-image-placeholder.dream-image-sm {
    height: 120px;
}

/* About page team cards: replace JS-driven hover shadow */
.team-card {
    background: #fff;
    box-shadow: var(--site-shadow-primary-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 123, 143, 0.2);
}

/* Page: Tüm Rüyalar (all-dreams.php) */
body.page-all-dreams {
    background: linear-gradient(135deg, #e6f8f4 0%, #f7f8fa 100%);
}

body.page-all-dreams .dream-card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.09);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    background: #fff;
    position: relative;
    overflow: hidden;
}

body.page-all-dreams .dream-card:hover {
    box-shadow: 0 12px 36px rgba(0, 123, 143, 0.18);
    transform: translateY(-6px) scale(1.03);
}

body.page-all-dreams .dream-card .card-title {
    color: #007b8f;
    font-size: 1.22em;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

body.page-all-dreams .dream-card .card-text {
    font-size: 1em;
    margin-bottom: 18px;
    color: #555;
}

body.page-all-dreams .dream-card .btn-outline-primary {
    border-radius: 10px;
    font-weight: 600;
    border-color: #007b8f;
    color: #007b8f;
    transition: background 0.2s ease, color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 143, 0.07);
}

body.page-all-dreams .dream-card .btn-outline-primary:hover {
    background: #007b8f;
    color: #fff;
    border-color: #007b8f;
}

body.page-all-dreams .dream-card .dream-meta {
    font-size: 0.95em;
    color: #009688;
    margin-bottom: 10px;
    display: block;
}

body.page-all-dreams .dream-card .dream-icon {
    margin-right: 6px;
    font-size: 1.15em;
    vertical-align: middle;
}

body.page-all-dreams .dream-card .dream-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #007b8f;
    color: #fff;
    font-size: 0.85em;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 123, 143, 0.09);
}

body.page-all-dreams .dream-card-iconbox {
    background: #e6f8f4;
    height: 60px;
}

body.page-all-dreams .breadcrumb-visual {
    background: #e6f8f4;
    border-radius: 8px;
    padding: 8px 18px;
    margin-bottom: 24px;
}

body.page-all-dreams .display-5 {
    font-size: 2.2em;
    color: #007b8f;
    font-weight: 700;
}

body.page-all-dreams .lead {
    font-size: 1.15em;
    color: #444;
}

@media (max-width: 900px) {
    body.page-all-dreams .dream-card {
        border-radius: 10px;
    }

    body.page-all-dreams .display-5 {
        font-size: 1.5em;
    }

    body.page-all-dreams .dream-search-bar {
        padding: 8px 10px;
    }
}

/* Page: Kahve Falı (kahve-fali.php) */
body.page-kahve-fali {
    background: #f8f9fa;
}

body.page-kahve-fali .text-gradient-modern {
    text-shadow: 0 2px 8px rgba(13, 110, 253, 0.13);
}

body.page-kahve-fali .bg-gradient-primary {
    background: linear-gradient(90deg, #0d6efd 0%, #a0522d 100%);
    color: #fff;
}

.text-brown {
    color: #a0522d;
}

body.page-kahve-fali .dream-image-placeholder,
body.page-kahve-fali .coffee-cup,
body.page-kahve-fali .modern-cup {
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

body.page-kahve-fali .dream-image-placeholder:hover,
body.page-kahve-fali .coffee-cup:hover,
body.page-kahve-fali .modern-cup:hover {
    box-shadow: 0 0 0 12px rgba(13, 110, 253, 0.13);
    transform: scale(1.05);
}

.modern-list .list-group-item {
    background: transparent;
    border: none;
    font-size: 1.08em;
    padding-left: 0.5em;
    transition: background 0.2s ease;
}

.modern-list .list-group-item:hover {
    background: #f3f3f3;
    border-radius: 8px;
}

.fade-in {
    animation: fadeIn 0.7s ease;
}

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

.fal-animasyon {
    animation: falPop 0.8s cubic-bezier(.68,-0.55,.27,1.55);
    font-size: 1.15em;
    font-weight: 500;
    letter-spacing: 0.5px;
}

@keyframes falPop {
    0% { transform: scale(0.7); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

/* Brand button helpers (dream share buttons) */
.btn-whatsapp {
    background: #25d366;
    border: none;
    color: #fff;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background: #1ebe5b;
    color: #fff;
}

.btn-facebook {
    background: #1877f2;
    border: none;
    color: #fff;
}

.btn-facebook:hover,
.btn-facebook:focus {
    background: #0f66d6;
    color: #fff;
}

.btn-twitter {
    background: #1da1f2;
    border: none;
    color: #fff;
}

.btn-twitter:hover,
.btn-twitter:focus {
    background: #0d8bd7;
    color: #fff;
}

.btn-telegram {
    background: #0088cc;
    border: none;
    color: #fff;
}

.btn-telegram:hover,
.btn-telegram:focus {
    background: #0077b3;
    color: #fff;
}

/* Utility: only top corners rounded (matches Bootstrap's default radius) */
.rounded-top-only {
    border-radius: 0.375rem 0.375rem 0 0 !important;
}

/* Utility: position tweaks for large corner icons */
.corner-icon {
    top: -10px;
    right: -10px;
}
