/* ==========================================================================
   Mustafa Enes ANLAMAZ — narrivo.link Signature Theme
   Blending Makestry Glassmorphism with Narrivo Brand Identity
   ========================================================================== */

/* Font Declarations */
@font-face {
    font-display: swap;
    font-family: 'Material Symbols Rounded';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/material-symbols-rounded-v285-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Syne';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/syne-v24-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Syne';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/syne-v24-latin-700.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Lexend Deca';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/lexend-deca-v25-latin-300.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Lexend Deca';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/lexend-deca-v25-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Lexend Deca';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/lexend-deca-v25-latin-700.woff2') format('woff2');
}

/* Material Symbol Helper */
.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}

/* Single Unified Design Tokens (Dark Glassmorphic Premium Theme) */
:root {
    --narrivo-purple: #4328a9;
    --narrivo-purple-light: #5f3fe0;
    --narrivo-purple-glow: rgba(67, 40, 169, 0.35);
    --narrivo-gold: #ffc62d;
    --narrivo-gold-glow: rgba(255, 198, 45, 0.35);

    --bg-color: #0c0817;
    --text-color: #F0EFEB;
    --text-muted: #a49fc4;
    --card-bg: rgba(26, 18, 48, 0.55);
    --card-hover-bg: rgba(38, 27, 69, 0.85);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    --glass-blur: 20px;
    --glass-header-bg: rgba(12, 8, 23, 0.75);
    --input-bg: rgba(255, 255, 255, 0.06);
    --input-border: rgba(255, 255, 255, 0.14);
    --badge-bg: rgba(255, 198, 45, 0.15);
    --badge-color: #ffc62d;
    --verified-blue: #0095f6;
    --modal-overlay: rgba(0, 0, 0, 0.8);
    --modal-bg: #140d28;
}

/* Base Resets & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    font-family: 'Lexend Deca', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Decorative Ambient Glow Orbs */
.bg-glow-orb-1 {
    position: fixed;
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--narrivo-purple-glow) 0%, rgba(67, 40, 169, 0) 70%);
    z-index: -2;
    pointer-events: none;
    animation: float 12s ease-in-out infinite alternate;
}

.bg-glow-orb-2 {
    position: fixed;
    bottom: -220px;
    right: -120px;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--narrivo-gold-glow) 0%, rgba(255, 198, 45, 0) 70%);
    z-index: -2;
    pointer-events: none;
    animation: float 16s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(30px) scale(1.08); }
}

/* Main Container Layout */
.app-wrapper {
    width: 100%;
    max-width: 650px;
    padding: 20px 16px 60px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    z-index: 1;
}

/* Top Utility Header Navigation */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: var(--glass-header-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--card-border);
    border-radius: 40px;
    box-shadow: var(--card-shadow);
}

.status-badge-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.825rem;
    font-weight: 400;
    color: var(--text-color);
}

.status-indicator {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #10b981;
    position: relative;
}

.status-indicator::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.4);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-btn:hover {
    background: var(--narrivo-purple);
    color: #ffffff;
    border-color: var(--narrivo-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px var(--narrivo-purple-glow);
}

/* Hero Profile Card */
.profile-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 22px;
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--card-border);
    border-radius: 28px;
    box-shadow: var(--card-shadow);
}

.avatar-wrapper {
    position: relative;
    width: 108px;
    height: 108px;
    margin-bottom: 16px;
}

.avatar-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--narrivo-purple) 0%, var(--narrivo-gold) 100%);
    box-shadow: 0 8px 24px var(--narrivo-purple-glow);
    animation: avatar-pulse 4s infinite alternate;
}

@keyframes avatar-pulse {
    0% { transform: scale(1); filter: hue-rotate(0deg); }
    100% { transform: scale(1.02); filter: hue-rotate(15deg); }
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--bg-color);
}

.verified-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: #ffffff;
    color: var(--verified-blue);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-size: 16px;
}

.brand-title-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 2px;
}

.brand-name {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.7rem;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

.brand-tagline {
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--narrivo-gold);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.brand-bio {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 20px;
    font-weight: 300;
}

.action-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid var(--card-border);
}

.pill-btn.primary {
    background: var(--narrivo-purple);
    color: #ffffff;
    border-color: var(--narrivo-purple);
    box-shadow: 0 4px 16px var(--narrivo-purple-glow);
}

.pill-btn.primary:hover {
    background: var(--narrivo-purple-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--narrivo-purple-glow);
}

.pill-btn.secondary {
    background: var(--input-bg);
    color: var(--text-color);
}

.pill-btn.secondary:hover {
    background: var(--card-hover-bg);
    transform: translateY(-2px);
    border-color: var(--narrivo-gold);
}

/* Link Filtering & Search Controls */
.filter-search-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 18px 12px 46px;
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--card-border);
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-color);
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--narrivo-purple);
    box-shadow: 0 0 0 3px var(--narrivo-purple-glow);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.category-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 8px 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.825rem;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--narrivo-gold);
    color: #0c0817;
    border-color: var(--narrivo-gold);
    box-shadow: 0 4px 14px var(--narrivo-gold-glow);
    font-weight: 700;
}

/* Links Grid & Cards */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--card-border);
    border-radius: 22px;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.link-card:hover {
    background: var(--card-hover-bg);
    transform: translateY(-3px);
    border-color: var(--narrivo-gold);
    box-shadow: 0 12px 28px var(--narrivo-gold-glow);
}

.link-card.highlight-card {
    border-left: 4px solid var(--narrivo-gold);
}

.link-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.link-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--badge-bg);
    color: var(--narrivo-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

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

.link-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.link-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.link-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-badge {
    font-size: 0.675rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--badge-bg);
    color: var(--badge-color);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.link-subtitle {
    font-size: 0.825rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 300;
}

.link-arrow {
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
    margin-left: 12px;
    flex-shrink: 0;
}

.link-card:hover .link-arrow {
    transform: translateX(4px);
    color: var(--narrivo-gold);
}

/* No Results Notice */
.no-results {
    display: none;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px dashed var(--card-border);
}

/* Social Icons Footer Section */
.social-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--card-border);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
}

.social-title {
    font-family: 'Syne', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.social-icons-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.social-link-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link-btn:hover {
    background: var(--narrivo-gold);
    color: #0c0817;
    border-color: var(--narrivo-gold);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px var(--narrivo-gold-glow);
}

/* Trust & Verification Footer Banner */
.trust-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--badge-bg);
    color: var(--badge-color);
    border-radius: 20px;
    font-weight: 400;
    font-size: 0.775rem;
}

.legal-links {
    display: flex;
    gap: 12px;
}

.legal-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-link:hover {
    color: var(--narrivo-gold);
    text-decoration: underline;
}

/* Modal Popups (Contact Form, QR Code, Privacy) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--modal-overlay);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: 100%;
    max-width: 480px;
    background: var(--modal-bg);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 28px 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--input-bg);
    border: none;
    color: var(--text-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.modal-close-btn:hover {
    background: var(--card-border);
}

.modal-header {
    margin-bottom: 20px;
}

.modal-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.modal-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Contact Form Styles */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    text-align: left;
}

.form-label {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-color);
    outline: none;
    transition: border-color 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--narrivo-gold);
}

.form-textarea {
    resize: vertical;
    min-height: 90px;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-question {
    font-weight: 700;
    background: var(--badge-bg);
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--badge-color);
    font-size: 0.9rem;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    background: var(--narrivo-purple);
    color: #ffffff;
    border: none;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px var(--narrivo-purple-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.submit-btn:hover {
    background: var(--narrivo-purple-light);
    transform: translateY(-2px);
}

/* QR Code Display Container */
.qr-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.qr-box {
    background: #ffffff;
    padding: 16px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--narrivo-purple);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 10px 30px var(--narrivo-purple-glow);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-notification.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .app-wrapper {
        padding: 12px 12px 40px;
    }
    
    .profile-card {
        padding: 22px 16px;
    }
    
    .brand-name {
        font-size: 1.5rem;
    }
    
    .link-card {
        padding: 14px 16px;
    }
    
    .link-left {
        gap: 12px;
    }
    
    .link-icon-box {
        width: 38px;
        height: 38px;
    }

    .action-pills {
        gap: 8px;
    }

    .pill-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}
