@import "colors.css";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Home Hero */
.hero-gif {
    max-width: 100%;
    height: auto;
}

@media (max-width: 991.98px) {
    .hero-row {
        margin-top: 0.5rem !important;
        padding-top: 0 !important;
    }

    .hero-gif {
        max-width: 280px;
    }
}

.zodiac-section {
    background-color: var(--astro-dark-wood);
    position: relative;
    padding: 80px 0;
}

.zodiac-container {
    position: relative;
    height: 550px; /* GIF boyutuna göre ayarlayın */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Orta GIF Ayarı */
.zodiac-center {
    width: 400px;
    height: 400px;
    z-index: 2;
}
.center-gif {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Sütun Düzeni */
.zodiac-column {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 3;
}
.left { left: 10%; }
.right { right: 10%; }

/* Burç Kartı Tasarımı */
.zodiac-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 50px; /* Oval görünüm */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    min-width: 180px;
    transition: 0.3s;
    cursor: pointer;
}

.zodiac-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.zodiac-icon-box {
    font-size: 24px;
    margin: 0 10px;
}

.zodiac-text .name {
    display: block;
    font-weight: bold;
    font-size: 16px;
}
.zodiac-text .date {
    font-size: 12px;
    opacity: 0.6;
}

/* Kavisli Efekt İçin Sütun İçi İtmeler */
/* Bu kısım görseldeki gibi ortadakileri dışa, üsttekileri içe iter */
.left .zodiac-item:nth-child(1), .left .zodiac-item:nth-child(6) { margin-left: 60px; }
.left .zodiac-item:nth-child(2), .left .zodiac-item:nth-child(5) { margin-left: 20px; }
.left .zodiac-item:nth-child(3), .left .zodiac-item:nth-child(4) { margin-left: 0px; }

.right .zodiac-item:nth-child(1), .right .zodiac-item:nth-child(6) { margin-right: 60px; }
.right .zodiac-item:nth-child(2), .right .zodiac-item:nth-child(5) { margin-right: 20px; }
.right .zodiac-item:nth-child(3), .right .zodiac-item:nth-child(4) { margin-right: 0px; }

/* Mobil Uyumluluk */
@media (max-width: 992px) {
    .zodiac-container { height: auto; flex-direction: column; }
    .zodiac-column { position: static; margin-top: 20px; width: 100%; }
    .zodiac-item { margin: 5px 0 !important; }
    .zodiac-center { width: 250px; height: 250px; }
}

/* Hizmetlerimiz Bölümü */
.services-section {
    position: relative;
}

.service-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(127, 85, 57, 0.1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
    border-color: var(--astro-wood);
}

.service-icon-wrapper {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 1.5rem;
    }
}

/* Alıntı Bölümü */
.quote-section {
    background: linear-gradient(135deg, var(--astro-dark-blue) 0%, var(--astro-ocean) 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.quote-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.quote-content {
    position: relative;
    z-index: 1;
    padding: 60px 40px;
}

.quote-stars {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--astro-gold);
    font-size: 1.5rem;
    opacity: 0.6;
    letter-spacing: 30px;
}

.quote-stars i {
    animation: twinkle 3s ease-in-out infinite;
}

.quote-stars i:nth-child(2) {
    animation-delay: 1s;
}

.quote-stars i:nth-child(3) {
    animation-delay: 2s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.quote-text {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.6;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-style: italic;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.quote-author {
    display: block;
    font-size: 1.25rem;
    font-style: normal;
    opacity: 0.8;
}

.quote-author em {
    font-style: italic;
    opacity: 0.9;
}

/* Responsive - Bootstrap Breakpoints */
@media (max-width: 991.98px) {
    .quote-section {
        padding: 60px 0;
    }
    
    .quote-content {
        padding: 50px 30px;
    }
    
    .quote-text {
        font-size: 2.5rem;
    }
    
    .quote-author {
        font-size: 1.1rem;
    }
    
    .quote-stars {
        font-size: 1.2rem;
        letter-spacing: 20px;
    }
}

@media (max-width: 767.98px) {
    .quote-section {
        padding: 50px 0;
    }
    
    .quote-content {
        padding: 40px 20px;
    }
    
    .quote-text {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .quote-author {
        font-size: 1rem;
    }
    
    .quote-stars {
        font-size: 1rem;
        letter-spacing: 15px;
        top: -15px;
    }
}

@media (max-width: 575.98px) {
    .quote-section {
        padding: 40px 0;
    }
    
    .quote-content {
        padding: 30px 15px;
    }
    
    .quote-text {
        font-size: 1.5rem;
        letter-spacing: 0.5px;
        margin-bottom: 0.75rem;
    }
    
    .quote-author {
        font-size: 0.9rem;
    }
    
    .quote-stars {
        font-size: 0.9rem;
        letter-spacing: 10px;
        top: -10px;
    }
}

/* ============================================
   RTL (Right-to-Left) Support for Arabic
   ============================================ */

html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

/* RTL - Text Alignment */
html[dir="rtl"] .text-start {
    text-align: right !important;
}

html[dir="rtl"] .text-end {
    text-align: left !important;
}

/* RTL - Flexbox Direction */
html[dir="rtl"] .d-flex {
    flex-direction: row-reverse;
}

html[dir="rtl"] .navbar-nav {
    flex-direction: row-reverse;
}

/* RTL - Margin & Padding Adjustments */
html[dir="rtl"] .me-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

html[dir="rtl"] .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

/* RTL - Dropdown Menu */
html[dir="rtl"] .dropdown-menu-end {
    right: auto !important;
    left: 0 !important;
}

/* RTL - Zodiac Columns */
html[dir="rtl"] .zodiac-column.left {
    left: auto;
    right: 10%;
}

html[dir="rtl"] .zodiac-column.right {
    right: auto;
    left: 10%;
}

/* RTL - Zodiac Items */
html[dir="rtl"] .zodiac-item {
    flex-direction: row-reverse;
}

html[dir="rtl"] .zodiac-text.text-end {
    text-align: left !important;
}

/* RTL - Service Cards */
html[dir="rtl"] .service-card {
    text-align: right;
}

/* RTL - Quote Section */
html[dir="rtl"] .quote-stars {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

/* RTL - Bootstrap Utilities Override */
html[dir="rtl"] .float-start {
    float: right !important;
}

html[dir="rtl"] .float-end {
    float: left !important;
}

html[dir="rtl"] .border-start {
    border-left: none !important;
    border-right: 1px solid !important;
}

html[dir="rtl"] .border-end {
    border-right: none !important;
    border-left: 1px solid !important;
}

/* RTL - Padding & Margin Utilities */
html[dir="rtl"] .ps-* {
    padding-right: var(--bs-gutter-x, 0.75rem) !important;
    padding-left: 0 !important;
}

html[dir="rtl"] .pe-* {
    padding-left: var(--bs-gutter-x, 0.75rem) !important;
    padding-right: 0 !important;
}

html[dir="rtl"] .ms-* {
    margin-right: var(--bs-gutter-x, 0.75rem) !important;
    margin-left: 0 !important;
}

html[dir="rtl"] .me-* {
    margin-left: var(--bs-gutter-x, 0.75rem) !important;
    margin-right: 0 !important;
}

/* Dropdown Hover - Gezegenler ve diğer dropdown menüler için */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

/* ========================================
   ASTRO TOAST NOTIFICATIONS
   ======================================== */

.astro-toast {
    min-width: 320px;
    max-width: 420px;
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow:
        0 14px 40px rgba(15, 23, 42, .16),
        0 0 0 1px rgba(0, 0, 0, .04) !important;
    background: #fff !important;
    backdrop-filter: blur(12px);
    animation: astro-toast-slide .4s cubic-bezier(.34, 1.4, .64, 1);
    pointer-events: all;
}

@keyframes astro-toast-slide {
    0% {
        opacity: 0;
        transform: translateX(30px) scale(.96);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.astro-toast__inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
}

.astro-toast__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}

.astro-toast__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.astro-toast__title {
    font-size: .85rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.astro-toast__body {
    font-size: .8rem;
    color: #64748b;
    line-height: 1.4;
    padding: 0 !important;
}

.astro-toast__close {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: none;
    background: rgba(0, 0, 0, .04);
    color: #94a3b8;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all .15s ease;
    margin-top: 2px;
}

.astro-toast__close:hover {
    background: rgba(0, 0, 0, .08);
    color: #475569;
}

/* Progress bar */
.astro-toast__progress {
    height: 3px;
    background: rgba(0, 0, 0, .06);
    display: none;
}

.astro-toast__progress--run {
    display: block;
    background: currentColor;
    opacity: .3;
    transform-origin: left;
    animation: astro-toast-progress linear forwards;
}

@keyframes astro-toast-progress {
    0%   { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}

/* Clickable toast */
.astro-toast--clickable {
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.astro-toast--clickable:hover {
    transform: translateY(-2px);
    box-shadow:
        0 18px 48px rgba(15, 23, 42, .2),
        0 0 0 1px rgba(0, 0, 0, .05) !important;
}

.astro-toast--clickable .astro-toast__body::after {
    content: ' \2192';
    opacity: .5;
}

/* CTA action button */
.astro-toast__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 14px;
    border-radius: 8px;
    border: none;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none;
    color: #fff;
    background: var(--astro-toast-cta-bg, #475569);
    box-shadow: 0 2px 6px var(--astro-toast-cta-shadow, rgba(71, 85, 105, .25));
    width: fit-content;
}

.astro-toast__cta:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--astro-toast-cta-shadow, rgba(71, 85, 105, .35));
}

.astro-toast__cta i {
    font-size: .65rem;
    transition: transform .2s ease;
}

.astro-toast__cta:hover i {
    transform: translateX(2px);
}

.astro-toast--warning .astro-toast__cta {
    --astro-toast-cta-bg: #d97706;
    --astro-toast-cta-shadow: rgba(217, 119, 6, .3);
}

.astro-toast--error .astro-toast__cta {
    --astro-toast-cta-bg: #dc2626;
    --astro-toast-cta-shadow: rgba(220, 38, 38, .3);
}

.astro-toast--success .astro-toast__cta {
    --astro-toast-cta-bg: #059669;
    --astro-toast-cta-shadow: rgba(5, 150, 105, .3);
}

.astro-toast--info .astro-toast__cta {
    --astro-toast-cta-bg: #2563eb;
    --astro-toast-cta-shadow: rgba(37, 99, 235, .3);
}

/* --- SUCCESS --- */
.astro-toast--success .astro-toast__icon {
    background: linear-gradient(135deg, #d1fae5, #ecfdf5);
    color: #059669;
    box-shadow: 0 3px 8px rgba(5, 150, 105, .15);
}

.astro-toast--success .astro-toast__progress--run {
    color: #059669;
}

/* --- INFO --- */
.astro-toast--info .astro-toast__icon {
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: #2563eb;
    box-shadow: 0 3px 8px rgba(37, 99, 235, .15);
}

.astro-toast--info .astro-toast__progress--run {
    color: #2563eb;
}

/* --- WARNING --- */
.astro-toast--warning .astro-toast__icon {
    background: linear-gradient(135deg, #fef3c7, #fffbeb);
    color: #d97706;
    box-shadow: 0 3px 8px rgba(217, 119, 6, .15);
}

.astro-toast--warning .astro-toast__progress--run {
    color: #d97706;
}

/* --- ERROR --- */
.astro-toast--error .astro-toast__icon {
    background: linear-gradient(135deg, #fee2e2, #fef2f2);
    color: #dc2626;
    box-shadow: 0 3px 8px rgba(220, 38, 38, .15);
}

.astro-toast--error .astro-toast__progress--run {
    color: #dc2626;
}

/* --- RESPONSIVE --- */
@media (max-width: 575.98px) {
    .astro-toast {
        min-width: 0;
        max-width: calc(100vw - 24px);
    }
}