/* ==========================================================================
   Portekiz Danismanlik - Premium CSS Style System (British Corporate Style)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --primary-color: #0b3b24;      /* Deep British Racing Green */
    --primary-light: #165337;     /* Lighter Forest Green */
    --accent-color: #c5a880;      /* Champagne Gold */
    --accent-hover: #b4956d;      /* Darker Gold */
    --bg-light: #f7f9f8;          /* Premium soft background */
    --bg-sage: #e8f0ec;           /* Sage green background */
    --text-dark: #1f2722;         /* Near black forest */
    --text-muted: #5e6b63;        /* Soft gray-green */
    --border-color: #d1ddd6;      /* Fine border */
    --card-shadow: 0 10px 30px rgba(11, 59, 36, 0.05);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .display-font {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary-color);
}

/* Base Layout & Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: var(--transition-smooth);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand svg {
    fill: var(--accent-color);
    width: 32px;
    height: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(11, 59, 36, 0.15);
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 168, 128, 0.2);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 4px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: var(--transition-smooth);
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0b3b24 0%, #031c10 100%);
    padding: 8rem 0 6rem 0;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    color: #ffffff;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
}

.hero-badge {
    background-color: rgba(197, 168, 128, 0.15);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.8rem;
}

/* Services & Cards */
.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.card-premium {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    height: auto;
    overflow: hidden;
}

.card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(11, 59, 36, 0.08);
    border-color: var(--accent-color);
}

.card-premium .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bg-sage);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.card-premium:hover .icon-wrapper {
    background-color: var(--primary-color);
    color: var(--accent-color);
}

/* Step Wizard / Custom Lead Form */
.wizard-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.wizard-header {
    background-color: var(--primary-color);
    padding: 2rem;
    color: #ffffff;
}

.wizard-header h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.wizard-body {
    padding: 3rem;
}

.wizard-progress {
    height: 4px;
    background-color: var(--border-color);
    margin-bottom: 2rem;
    position: relative;
}

.wizard-progress-bar {
    height: 100%;
    background-color: var(--accent-color);
    width: 0;
    transition: var(--transition-smooth);
}

.form-group-premium {
    margin-bottom: 1.75rem;
}

.form-group-premium label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-control-premium {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control-premium:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 59, 36, 0.08);
    outline: none;
}

.form-check-premium {
    margin-bottom: 1.5rem;
}

.form-check-premium input {
    accent-color: var(--primary-color);
}

/* Testimonials & Slider */
.testimonial-section {
    background-color: var(--bg-light);
    padding: 6rem 0;
}

.testimonial-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    position: relative;
}

.testimonial-card::before {
    content: '“';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: var(--bg-sage);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.testimonial-text {
    position: relative;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.testimonial-client {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--bg-sage);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-color);
}

.rating-stars {
    color: var(--accent-color);
}

/* Client Portal & Dashboard */
.dashboard-wrapper {
    background-color: var(--bg-light);
    min-height: 100vh;
    padding: 3rem 0;
}

.sidebar-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.sidebar-link:hover, .sidebar-link.active {
    background-color: var(--primary-color);
    color: #ffffff;
}

.sidebar-link:hover svg, .sidebar-link.active svg {
    stroke: var(--accent-color);
}

.status-badge-timeline {
    position: relative;
    padding-left: 2.5rem;
}

.status-badge-timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
}

.status-node {
    position: absolute;
    left: 0;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 3px solid var(--border-color);
    z-index: 1;
    transition: var(--transition-smooth);
}

.status-node.active {
    border-color: var(--primary-color);
    background-color: var(--accent-color);
}

.status-node.completed {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.status-step {
    padding-bottom: 2rem;
}

.status-step:last-child {
    padding-bottom: 0;
}

.status-step:last-child::before {
    display: none;
}

/* Footer */
.footer-premium {
    background-color: #031c10;
    color: rgba(255, 255, 255, 0.75);
    padding: 5rem 0 2rem 0;
    border-top: 3px solid var(--accent-color);
}

.footer-premium h5 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

/* Blog & Elements */
.blog-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(11, 59, 36, 0.1);
}

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

.blog-body {
    padding: 2rem;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

/* Premium Milestone Stepper */
.milestone-stepper {
    position: relative;
    padding-left: 3rem;
}

.milestone-stepper::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--border-color);
}

.milestone-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.milestone-item:last-child {
    margin-bottom: 0;
}

.milestone-icon {
    position: absolute;
    left: -3rem;
    top: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
}

.milestone-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: var(--transition-smooth);
}

.milestone-card.active {
    background: linear-gradient(135deg, #ffffff 0%, #fbf8f3 100%);
    border-color: var(--accent-color) !important;
    box-shadow: 0 8px 30px rgba(197, 168, 128, 0.12);
}

.milestone-card.completed {
    border-color: #198754 !important;
}

.milestone-card.pending {
    opacity: 0.7;
}

.spin-animation {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Cookie Consent Popup */
.cookie-popup {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(11, 59, 36, 0.12);
    z-index: 9999;
    animation: slideUp 0.5s ease-out forwards;
}

.cookie-popup-content {
    display: flex;
    flex-direction: column;
}

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

@media (max-width: 576px) {
    .cookie-popup {
        bottom: 12px;
        right: 12px;
        left: 12px;
        max-width: none;
    }
}


/* ==========================================================================
   Document Chat / Dialog System
   ========================================================================== */

.chat-section {
    border-top-color: rgba(11, 59, 36, 0.08) !important;
}

.chat-messages {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 5px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 10px;
}

/* Base chat bubble */
.chat-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    position: relative;
    animation: chatFadeIn 0.3s ease;
}

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

/* Avukat mesajı — sola hizalı, yeşil */
.chat-bubble.chat-lawyer {
    background: linear-gradient(135deg, #e8f5ee 0%, #dff0e8 100%);
    border: 1px solid rgba(11, 59, 36, 0.12);
    border-bottom-left-radius: 4px;
    margin-right: auto;
    margin-left: 0;
}

/* Müşteri mesajı — sağa hizalı, altın */
.chat-bubble.chat-client {
    background: linear-gradient(135deg, #faf5ee 0%, #f5eee0 100%);
    border: 1px solid rgba(197, 168, 128, 0.25);
    border-bottom-right-radius: 4px;
    margin-left: auto;
    margin-right: 0;
}

/* Bubble header */
.chat-bubble-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    gap: 10px;
}

.chat-author {
    font-size: 0.72rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
}

.chat-lawyer .chat-author {
    color: var(--primary-color);
}

.chat-client .chat-author {
    color: var(--accent-hover);
}

.chat-time {
    font-size: 0.68rem;
    color: var(--text-muted);
    opacity: 0.7;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

/* Bubble body */
.chat-bubble-body {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    word-break: break-word;
}

/* Chat input area */
.chat-input-area {
    background: rgba(11, 59, 36, 0.02);
    border-radius: 10px;
    padding: 8px;
    border: 1px solid rgba(11, 59, 36, 0.06);
}

.chat-input-area input[type="text"] {
    border-radius: 8px;
    font-size: 0.85rem;
}

.chat-input-area button {
    border-radius: 8px;
}

/* Badge accent (for comment counts) */
.badge.bg-accent {
    background-color: var(--accent-color) !important;
}

@media (max-width: 768px) {
    .chat-bubble {
        max-width: 95%;
    }
}
