/* 
   Project: 19216811.net.tr
   Theme: Cyber/Tech Premium (Dark Mode)
   Author: Antigravity
   Version: 2.0
*/

/* Google Fonts loaded via <link> in HTML <head> — do not duplicate with @import */

:root {
    /* 
       Color Palette:
       Deep Navy / Slate backgrounds with Vibrant Cyan/Electric Blue accents
    */
    --bg-dark: #020617;
    /* Very dark slate */
    --bg-card: #0f172a;
    /* Slate 900 */
    --bg-card-hover: #1e293b;
    /* Slate 800 */

    --primary: #06b6d4;
    /* Cyan 500 */
    --primary-hover: #22d3ee;
    /* Cyan 400 */
    --secondary: #6366f1;
    /* Indigo 500 */

    --text-main: #f8fafc;
    /* Slate 50 */
    --text-muted: #94a3b8;
    /* Slate 400 */
    --text-dim: #64748b;
    /* Slate 500 */

    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(6, 182, 212, 0.5);

    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.3);

    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --backdrop-blur: blur(16px);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 40%);
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

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

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

/* Typography Enhancements */
.text-gradient {
    background: linear-gradient(135deg, #fff 20%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 10px;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #0891b2 100%);
    color: #fff;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
    filter: brightness(1.1);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn svg {
    width: 20px;
    height: 20px;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(2, 6, 23, 0.85);
    /* Slightly darker than bg-dark for contrast */
    backdrop-filter: var(--backdrop-blur);
    border-bottom: var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

header.scrolled {
    height: 70px;
    background: rgba(2, 6, 23, 0.95);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--primary);
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

nav a:hover,
nav a.active {
    color: #fff;
}

nav a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 120px;
    text-align: center;
    position: relative;
}

.hero::after {
    /* Glow effect behind text */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    will-change: transform, opacity;
    pointer-events: none;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 80px;
}

.card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 40px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    /* FIX: Ensure clicks pass through to links */
    z-index: 0;
}

.card>* {
    position: relative;
    z-index: 1;
    /* FIX: Ensure content is above overlay */
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 64px;
    height: 64px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
    font-size: 1.75rem;
}

.card h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Password Finder Tool - Premium look */
.tool-section {
    position: relative;
}

.tool-container {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 60px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 50px -10px rgba(6, 182, 212, 0.15);
}

.tool-container::before {
    /* Gradient border top */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.tool-header {
    text-align: center;
    margin-bottom: 40px;
}

.tool-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tool-controls {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 20px;
    margin-bottom: 40px;
}

select {
    width: 100%;
    padding: 16px 20px;
    background: #0b1120;
    /* Very dark */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    transition: var(--transition);
}

select:hover {
    border-color: var(--text-muted);
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Result Box */
.result-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    padding: 40px;
    text-align: center;
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.result-box.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.result-content {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 20px;
}

.credential-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.credential-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.credential-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.copy-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* Troubleshooter Wizard */
.troubleshooter-wrapper {
    min-height: 250px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-top: 60px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.troubleshooter-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
}

.troubleshooter-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.ts-step {
    display: none;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
}

.ts-step.active {
    display: flex;
    opacity: 1;
    transform: translateX(0);
}

.ts-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 18px 25px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ts-option:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

.ts-btn-back {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px;
    margin-top: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.ts-btn-back:hover {
    color: #fff;
}

/* Guide Steps */
.step-item {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
    position: relative;
    padding: 40px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: var(--glass-border);
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

.step-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.step-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Data Table */
.data-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

.data-table th,
.data-table td {
    padding: 20px 30px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table th {
    background: rgba(15, 23, 42, 0.8);
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* FAQ Accordion */
.accordion-item {
    background: #0b1120;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.accordion-item.active {
    border-color: var(--primary);
    background: rgba(6, 182, 212, 0.03);
}

.accordion-header {
    padding: 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    color: var(--text-muted);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0, 1, 0, 1);
}

.accordion-item.active .accordion-content {
    padding-bottom: 24px;
    max-height: 1000px;
    /* arbitrary high number */
    transition: all 0.3s ease-in;
}

/* Footer */
footer {
    background: #000205;
    /* Pitch black approx */
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Helper for Error Pages (192.168.l.l) */
.comparison-box {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.comp-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    padding: 40px;
    text-align: center;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
}

.comp-card.wrong {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
}

.comp-card.right {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.1);
}

.comp-val {
    font-size: 2.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin: 20px 0;
    display: block;
}

/* Ad Container (replaces deprecated <center>) */
.ad-container {
    text-align: center;
}

/* Content Block */
.content-block {
    padding: 30px;
    border-radius: var(--radius-md);
}

/* Quick Start Section */
.quick-start-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-start-header {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.quick-start-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.update-badge {
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    border-radius: 20px;
}

.dark-panel {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: var(--radius-sm);
}

/* IP Link Chips */
.ip-link {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    border-radius: 5px;
    color: inherit;
    text-decoration: none;
    transition: background 0.3s;
}

.ip-link:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Troubleshooting Section */
.troubleshoot-section {
    background: rgba(255, 255, 255, 0.02);
}

/* IP Links Container */
.ip-links-container {
    margin-bottom: 40px;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.ip-links-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    font-family: monospace;
    color: var(--secondary);
}

/* Rehberler Card Lists */
.card-list {
    text-align: left;
    list-style: circle;
    padding-left: 20px;
    color: var(--text-dim);
}

.card-list li {
    margin-bottom: 10px;
}

.card-list a {
    color: inherit;
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Checklist Items */
.check-list {
    list-style: none;
    padding: 0;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.check-list li {
    margin-bottom: 8px;
}

.check-list a {
    color: inherit;
    text-decoration: underline;
}

/* Password Table */
.password-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}

.password-table th,
.password-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.password-table thead th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.password-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.password-table td:nth-child(3),
.password-table td:nth-child(4) {
    font-family: monospace;
    color: var(--secondary);
}

/* Responsive Ad Unit */
.Duyarli21 {
    width: 100%;
    height: 312px;
}

@media (min-width: 800px) {
    .Duyarli21 {
        width: 980px;
        height: 120px;
    }
}

/* ========================================
   FEATURE 1: Reading Progress Bar
   ======================================== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reading-progress.visible {
    opacity: 1;
}

.reading-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary), #a78bfa);
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px var(--primary);
}

.reading-time-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 25px;
}

/* ========================================
   FEATURE 2: IP Copy Tooltips
   ======================================== */
.ip-copyable {
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.ip-copyable:hover {
    color: var(--primary) !important;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.3);
}

.ip-copyable::after {
    content: '📋';
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    transition: transform 0.2s ease;
    pointer-events: none;
}

.ip-copyable:hover::after {
    transform: translateX(-50%) scale(1);
}

.ip-copied::after {
    content: '✓ Kopyalandı!' !important;
    transform: translateX(-50%) scale(1) !important;
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}

/* ========================================
   FEATURE 3: Connection Status Widget
   ======================================== */
.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease;
    justify-content: center;
}

.connection-status.online {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.connection-status.offline {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.status-dot.online {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulse-dot 2s infinite;
}

.status-dot.offline {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    animation: pulse-dot 1s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   FEATURE 4: Sticky Table of Contents
   ======================================== */
.toc-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.toc-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.toc-sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toc-link {
    display: block;
    padding: 6px 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1.3;
    border-left: 2px solid transparent;
}

.toc-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.toc-link.active {
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
}

/* ========================================
   FEATURE 5: Feedback Widgets
   ======================================== */
.feedback-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.feedback-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    color: var(--text-muted);
}

.feedback-btn:hover {
    transform: scale(1.15);
}

.feedback-btn[data-value="yes"]:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
}

.feedback-btn[data-value="no"]:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
}

.feedback-thanks {
    color: var(--success);
    font-weight: 500;
    animation: fadeInUp 0.3s ease;
}

.feedback-widget.submitted {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

/* ========================================
   FEATURE 6: Brand Memory Banner
   ======================================== */
.brand-memory-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    animation: fadeInUp 0.4s ease;
    flex-wrap: wrap;
}

.brand-memory-use {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: opacity 0.2s;
}

.brand-memory-use:hover {
    opacity: 0.85;
}

.brand-memory-dismiss {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1rem;
    padding: 2px 6px;
}


/* Mobile Responsive */
@media (max-width: 960px) {
    .tool-controls {
        grid-template-columns: 1fr;
    }

    .result-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 1280px) {
    .toc-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1001;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-card);
        border-left: 1px solid var(--border-color);
        padding-top: 100px;
        transition: right 0.3s ease;
        box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    nav a {
        font-size: 1.25rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }

    /* Mobile touch targets (min 44px) */
    .accordion-header {
        padding: 16px 20px;
        min-height: 48px;
    }

    .footer-links li a {
        display: block;
        padding: 10px 0;
    }

    .feedback-btn {
        min-width: 48px;
        min-height: 48px;
        padding: 10px 16px;
    }

    /* Mobile Quick Start compact */
    .quick-start-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile IP links 2x2 */
    .ip-links-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .ip-link {
        padding: 12px 0;
        text-align: center;
    }

    /* Connection status compact */
    .connection-status {
        font-size: 0.8rem;
        padding: 8px 14px;
    }

    /* Share button full width */
    .share-btn {
        width: 100%;
    }

    /* Table scroll enhancement */
    .password-table-wrap {
        position: relative;
    }

    .password-table-wrap::after {
        content: '← kaydır →';
        display: block;
        text-align: center;
        font-size: 0.7rem;
        color: var(--text-dim);
        padding: 6px 0;
        opacity: 0.7;
    }

    /* Footer 2-column */
    .footer-links {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.85rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Password table card layout on very small screens */
    .password-table thead {
        display: none;
    }

    .password-table tbody tr {
        display: block;
        padding: 14px;
        margin-bottom: 10px;
        border: 1px solid var(--border-color);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.02);
    }

    .password-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 6px 4px;
        border-bottom: none;
        font-size: 0.9rem;
    }

    .password-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        flex-shrink: 0;
        margin-right: 10px;
    }
}

/* ========================================
   Mobile Bottom CTA Bar
   ======================================== */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 1));
    border-top: 1px solid var(--border-color);
    z-index: 9999;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.mobile-bottom-bar.hidden {
    transform: translateY(100%);
}

.mobile-cta-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease;
}

.mobile-cta-btn:active {
    transform: scale(0.96);
}

.mobile-cta-btn.primary {
    background: linear-gradient(135deg, var(--primary), #0ea5e9);
    color: #fff;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.mobile-cta-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* Share Button */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.share-btn:hover,
.share-btn:active {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* PWA Install Banner */
.pwa-banner {
    position: fixed;
    bottom: 70px;
    left: 10px;
    right: 10px;
    z-index: 9998;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.pwa-banner.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    flex-wrap: wrap;
}

.pwa-banner-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.pwa-how {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    min-height: 36px;
}

.pwa-dismiss {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px 8px;
    min-height: 36px;
}

@media (min-width: 769px) {

    .mobile-menu-btn,
    .mobile-bottom-bar,
    .pwa-banner {
        display: none;
    }
}

/* ========================================
   SEO COMPONENTS — Quick Answer Box
   ======================================== */
.quick-answer-box {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(99, 102, 241, 0.08));
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 24px 28px;
    margin-bottom: 40px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-main);
}

.quick-answer-box strong {
    color: var(--primary);
}

/* ========================================
   SEO COMPONENTS — Inline TOC
   ======================================== */
.toc-inline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 30px;
    margin-bottom: 50px;
}

.toc-inline-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-inline ol {
    list-style: decimal;
    padding-left: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 6px 30px;
}

.toc-inline li {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.toc-inline li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.toc-inline li a:hover {
    color: var(--primary);
}

/* ========================================
   SEO COMPONENTS — Related Guides
   ======================================== */
.related-guides {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.related-guides h2 {
    text-align: center;
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.related-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.related-card .rc-icon {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.related-card .rc-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
}

.related-card .rc-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ========================================
   SEO COMPONENTS — Breadcrumb
   ======================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

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

.breadcrumb .sep {
    color: var(--text-dim);
    font-size: 0.7rem;
}

/* ========================================
   SEO COMPONENTS — Article Meta
   ======================================== */
.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========================================
   SEO COMPONENTS — Info Callout Boxes
   ======================================== */
.callout-box {
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    margin: 25px 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.callout-box.tip {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-left: 4px solid var(--success);
}

.callout-box.warning {
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-left: 4px solid var(--warning);
}

.callout-box.danger {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 4px solid var(--error);
}