/**
 * Falscript - Mystical Theme CSS
 * @author Senior PHP Developer
 * @version 1.0.0
 */

/* ===== CSS Variables ===== */
:root {
    --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --mystical-shadow: 0 4px 15px rgba(107, 70, 193, 0.2);
    --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

/* Hero Section Backgrounds */
.fal-turu-hero {
    background-color: var(--background-color);
}

.falci-hero-minimal {
    background-color: var(--background-color);
}

.firma-hero {
    background-color: var(--background-color);
}

.page-header {
    background-color: var(--background-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Typography ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6B7280;
    margin-bottom: 2rem;
}

/* ===== Buttons ===== */
.btn {
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
    transition: var(--transition);
    text-transform: none;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--mystical-shadow);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ===== Header Styles ===== */
.site-header {
    background: var(--header-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: white !important;
}

.logo-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-logo {
    max-height: 60px;
}

.navbar-nav .nav-link {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 0.9rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* ===== Hero Slider ===== */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.carousel-item {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(0.7);
}

.carousel-caption {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    text-align: center;
    background: rgba(0, 0, 0, 0.45);
    padding: 1.5rem;
    max-width: 60%;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.slider-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slider-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* ===== Card Styles ===== */
.falci-card,
.fal-turu-card,
.company-card,
.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
}

.falci-card:hover,
.fal-turu-card:hover,
.company-card:hover,
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--mystical-shadow);
}

/* ===== Falci Card ===== */
.falci-card {
    display: flex;
    flex-direction: column;
    height: 320px; /* Fixed height for uniformity */
}

.falci-image {
    position: relative;
    height: 150px; /* Fixed height for image area */
    overflow: hidden;
    flex-shrink: 0;
}

.falci-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.falci-card:hover .falci-image img {
    transform: scale(1.05);
}

.falci-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.falci-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    height: 2.6rem; /* Fixed height for 2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.falci-company {
    font-size: 0.85rem;
    color: #6B7280;
    margin-bottom: 0;
    height: 1.2rem; /* Fixed height */
    line-height: 1.2rem;
}

.falci-services {
    min-height: 2.5rem; /* Fixed area for service badges */
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.25rem;
}

.falci-services .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

/* ===== Company Card ===== */
.company-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.company-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.company-card:hover .company-image img {
    transform: scale(1.1);
}

.company-content {
    padding: 1.5rem;
}

.company-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.company-location {
    font-size: 0.9rem;
    color: #6B7280;
    margin-bottom: 1rem;
}

.company-desc {
    font-size: 0.95rem;
    color: #4B5563;
    margin-bottom: 1rem;
}

/* ===== Fal Turu Card ===== */
.fal-turu-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.fal-turu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fal-turu-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-gradient);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.fal-turu-price .price {
    display: block;
    font-size: 1.2rem;
}

.fal-turu-price .duration {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
}

.fal-turu-content {
    padding: 1.5rem;
}

.fal-turu-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.fal-turu-desc {
    font-size: 0.95rem;
    color: #4B5563;
    margin-bottom: 1.5rem;
}

/* Falcı kartları için özel stiller */
.fal-turu-info .company {
    font-size: 0.85rem;
    color: #6B7280;
    display: block;
    margin-bottom: 0.25rem;
}

.fal-turu-info .services {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* ===== Blog Card ===== */
.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    font-size: 0.9rem;
    color: #6B7280;
    margin-bottom: 1rem;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.blog-title a {
    color: var(--text-color);
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #4B5563;
    margin-bottom: 1rem;
}

/* ===== FAQ Section ===== */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.accordion-button {
    background: white;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.25rem;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-gradient);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    padding: 1.5rem;
    background: white;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--footer-color);
    color: white;
    padding: 2.5rem 0 1.5rem;
    margin-top: 5rem;
}

.footer-brand {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.footer-brand:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.footer-logo {
    height: 60px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.footer-text {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links {
    margin-bottom: 1.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.secure-payment-wrapper {
    transition: var(--transition);
}

.secure-payment-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
}

.secure-payment-img {
    display: block;
    transition: var(--transition);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-contact li i {
    width: 20px;
    color: var(--accent-color);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-text {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .slider-title {
        font-size: 2rem;
    }

    .carousel-item {
        height: 350px;
    }

    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }

    .navbar-nav .nav-link {
        margin: 5px 0;
    }

    .navbar-nav .nav-link.active::after {
        display: none;
    }

    /* Mobile navbar login button spacing */
    .navbar-nav .btn-outline-light {
        margin-bottom: 10px;
    }
}

/* ===== Mystical Effects ===== */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px var(--primary-color); }
    50% { box-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--secondary-color); }
    100% { box-shadow: 0 0 5px var(--primary-color); }
}

.mystical-float {
    animation: float 3s ease-in-out infinite;
}

.mystical-glow {
    animation: glow 2s ease-in-out infinite;
}

/* ===== Dashboard Filter Styles ===== */
.filter-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-section:last-child {
    margin-bottom: 1rem;
}

.filter-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-title i {
    color: #6c5ce7;
    font-size: 0.9rem;
}

.filter-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-option:last-child {
    border-bottom: none;
}

.filter-option:hover {
    background-color: #f0f0ff;
}

.filter-option.hidden {
    display: none;
}

.filter-option input[type="checkbox"] {
    margin-right: 0.75rem;
    transform: scale(1.1);
    accent-color: #6c5ce7;
}

.filter-option label {
    flex: 1;
    margin: 0;
    cursor: pointer;
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

.filter-count {
    background: #e9ecef;
    color: #6c757d;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

/* Filter Dropdown Styles */
.filter-dropdown {
    position: relative;
    width: 100%;
}

.filter-dropdown-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #495057;
    transition: all 0.3s ease;
}

.filter-dropdown-btn:hover {
    border-color: #6c5ce7;
    background: #f8f9fa;
}

.filter-dropdown-btn.active {
    border-color: #6c5ce7;
    background: #f0f0ff;
}

.filter-dropdown-btn i {
    transition: transform 0.3s ease;
    color: #6c757d;
}

.filter-dropdown-btn.active i {
    transform: rotate(180deg);
}

.filter-dropdown-text {
    flex: 1;
    text-align: left;
    font-weight: 500;
}

.filter-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #6c5ce7;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow: hidden;
}

.filter-dropdown-content.show {
    display: block;
}

.filter-search {
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.filter-search input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.filter-search input:focus {
    border-color: #6c5ce7;
}

.filter-options-container {
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.filter-options-container::-webkit-scrollbar {
    width: 6px;
}

.filter-options-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.filter-options-container::-webkit-scrollbar-thumb {
    background: #6c5ce7;
    border-radius: 3px;
}

.filter-options-container::-webkit-scrollbar-thumb:hover {
    background: #5a4fcf;
}

/* Rating Filter Styles */
.rating-filter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-option {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.rating-option:hover {
    border-color: #6c5ce7;
    background: #f8f9fa;
}

.rating-option.selected {
    border-color: #6c5ce7;
    background: #f0f0ff;
}

.rating-option input[type="radio"] {
    margin-right: 0.75rem;
    accent-color: #6c5ce7;
}

.rating-option label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin: 0;
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars i {
    font-size: 0.8rem;
}

/* Clear Filters Button */
.clear-filters {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.clear-filters:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.clear-filters:active {
    transform: translateY(0);
}

.clear-filters.hidden {
    display: none;
}

/* Tellers Pagination */
.tellers-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
}

.tellers-pagination button {
    padding: 0.5rem 1rem;
    background: #6c5ce7;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.tellers-pagination button:hover:not(:disabled) {
    background: #5a4fcf;
    transform: translateY(-1px);
}

.tellers-pagination button:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.tellers-pagination .page-info {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
    padding: 0 1rem;
}

/* Mobile Responsive for Filters */
@media (max-width: 768px) {
    .filter-dropdown-content {
        max-height: 250px;
    }

    .filter-options-container {
        max-height: 150px;
    }

    .filter-dropdown-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .filter-search input {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .filter-option {
        padding: 0.4rem 0.75rem;
    }

    .filter-option label {
        font-size: 0.85rem;
    }

    .filter-count {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}