/* ===============================================
   VARIABLES & RESET
   =============================================== */
:root {
    --primary: #E63946;
    --primary-hover: #D62839;
    --background-light: #F3F4F6;
    --background-dark: #16161C;
    --surface-dark: #1E1E26;
    --surface-darker: #111115;
    --border-dark: #2A2A35;
    --text-light: #1F2937;
    --text-dark: #E5E7EB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--background-light);
    color: var(--text-light);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

html.dark body {
    background: var(--background-dark);
    color: var(--text-dark);
}

/* ===============================================
   SCROLLBAR
   =============================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===============================================
   NAVBAR
   =============================================== */
.navbar {
    width: 100%;
    height: 80px;
    background: white;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    z-index: 50;
    flex-shrink: 0;
}

html.dark .navbar {
    background: var(--surface-darker);
    border-bottom-color: var(--border-dark);
}

.navbar-content {
    width: 100%;
    max-width: 100%;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #1F2937;
}

html.dark .site-title {
    color: white;
}

.subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    opacity: 0.8;
    margin-left: 0.5rem;
}

.navbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.search-box {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1.25rem;
    pointer-events: none;
    z-index: 2;
    transition: color 0.3s;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1.25rem 0.875rem 3.25rem;
    border-radius: 12px;
    border: 2px solid #E5E7EB;
    background: #FFFFFF;
    color: #1F2937;
    font-size: 0.9375rem;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

html.dark .search-input {
    background: #1C1C24;
    border-color: #2A2A35;
    color: white;
}

html.dark .search-input {
    background: #1C1C24;
    border-color: var(--border-dark);
    color: white;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #FFFFFF;
}

html.dark .search-input:focus {
    background: #1E1E26;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.search-input:focus + .search-icon,
.search-input:focus ~ .search-icon {
    color: var(--primary);
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

html.dark .search-dropdown {
    background: #1E1E26;
    border-color: #2A2A35;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #F3F4F6;
    color: #1F2937;
    font-size: 0.9375rem;
}

html.dark .search-result-item {
    border-bottom-color: #2A2A35;
    color: white;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #F9FAFB;
    color: var(--primary);
}

html.dark .search-result-item:hover {
    background: #111115;
}

.search-result-item .material-icons-round {
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.search-result-item.no-results {
    color: #6B7280;
    cursor: default;
    justify-content: center;
    padding: 1.5rem;
}

html.dark .search-result-item.no-results {
    color: #9CA3AF;
}

.search-result-item.no-results:hover {
    background: transparent;
    color: #6B7280;
}

html.dark .search-result-item.no-results:hover {
    color: #9CA3AF;
}

@media (max-width: 767px) {
    .navbar-center {
        display: none;
    }
    
    .navbar-content {
        justify-content: space-between;
    }
    
    .navbar-left {
        flex: 1;
    }
}

.theme-toggle {
    padding: 0.5rem;
    border-radius: 50%;
    background: #F3F4F6;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--gray-600);
}

html.dark .theme-toggle {
    background: var(--border-dark);
    color: var(--gray-400);
}

.theme-toggle:hover {
    background: #E5E7EB;
}

html.dark .theme-toggle:hover {
    background: #374151;
}

/* ===============================================
   MAIN CONTAINER
   =============================================== */
.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* ===============================================
   SIDEBAR
   =============================================== */
.sidebar {
    width: 100%;
    background: white;
    border-right: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
    z-index: 20;
    position: absolute;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.3s;
}

.sidebar.open {
    transform: translateX(0);
}

@media (min-width: 768px) {
    .sidebar {
        width: 320px;
        position: relative;
        transform: translateX(0);
    }
}

html.dark .sidebar {
    background: var(--surface-darker);
    border-right-color: var(--border-dark);
}

.sidebar-header {
    padding: 1.25rem;
    border-bottom: 1px solid #E5E7EB;
    background: #F9FAFB;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

html.dark .sidebar-header {
    background: rgba(30, 30, 38, 0.5);
    border-bottom-color: var(--border-dark);
}

.sidebar-header h3 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1F2937;
}

html.dark .sidebar-header h3 {
    color: white;
}

.sidebar-header .material-icons-round {
    color: var(--primary);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.sidebar-item {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border-right: 3px solid transparent;
}

html.dark .sidebar-item {
    color: var(--gray-400);
}

.sidebar-item:hover {
    background: #F9FAFB;
    color: var(--primary);
}

html.dark .sidebar-item:hover {
    background: var(--surface-dark);
    color: var(--primary);
}

.sidebar-item.active {
    background: rgba(230, 57, 70, 0.1);
    color: var(--primary);
    border-right-color: var(--primary);
}

.sidebar-mobile-close {
    padding: 1rem;
    border-top: 1px solid #E5E7EB;
    display: block;
}

@media (min-width: 768px) {
    .sidebar-mobile-close {
        display: none;
    }
}

html.dark .sidebar-mobile-close {
    border-top-color: var(--border-dark);
}

.sidebar-mobile-close button {
    width: 100%;
    padding: 0.5rem;
    background: #F3F4F6;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

html.dark .sidebar-mobile-close button {
    background: #374151;
    color: white;
}

/* ===============================================
   MOBILE MENU BUTTON
   =============================================== */
.mobile-menu-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    background: var(--primary);
    color: white;
    padding: 1rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.3), 0 0 20px rgba(230, 57, 70, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* ===============================================
   MAIN CONTENT
   =============================================== */
.content {
    flex: 1;
    overflow-y: auto;
    background: var(--background-light);
    position: relative;
}

html.dark .content {
    background: var(--background-dark);
}

.content-wrapper {
    max-width: 56rem;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    position: relative;
    z-index: 10;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .content-wrapper {
        padding: 4rem 1.5rem;
    }
}

/* Background effects */
.content::before {
    content: '';
    position: absolute;
    top: -5rem;
    left: 25%;
    width: 500px;
    height: 500px;
    background: var(--primary);
    opacity: 0.05;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.content::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 2.5rem;
    width: 300px;
    height: 300px;
    background: var(--primary);
    opacity: 0.05;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

/* ===============================================
   CONTENT SECTIONS
   =============================================== */
.content-section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.content-section.active {
    display: block;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
    flex-wrap: wrap;
    gap: 1rem;
}

html.dark .section-header {
    border-bottom-color: var(--border-dark);
}

.section-header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #1F2937;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .section-header h1 {
        font-size: 2.25rem;
    }
}

html.dark .section-header h1 {
    color: white;
}

.section-header h1 .material-icons-round {
    color: var(--primary);
    font-size: 2.25rem;
    font-family: 'Material Icons Round';
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #FF4757 100%);
    border: none;
    color: white;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4), 
                0 0 20px rgba(230, 57, 70, 0.2);
    position: relative;
    overflow: hidden;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.share-btn:hover::before {
    left: 100%;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(230, 57, 70, 0.6), 
                0 0 40px rgba(230, 57, 70, 0.3),
                0 0 60px rgba(230, 57, 70, 0.15);
}

.share-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.share-btn .material-symbols-outlined {
    font-size: 1.125rem;
    transition: transform 0.3s;
}

.share-btn:hover .material-symbols-outlined {
    transform: rotate(15deg) scale(1.1);
}

/* ===============================================
   CARDS
   =============================================== */
.card {
    background: white;
    border: 1px solid #F3F4F6;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

html.dark .card {
    background: var(--surface-dark);
    border-color: var(--border-dark);
}

.card:hover {
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.3), 0 0 20px rgba(230, 57, 70, 0.1);
}

.card p {
    color: var(--gray-600);
    line-height: 1.75;
    font-size: 1.125rem;
}

html.dark .card p {
    color: #D1D5DB;
}

.card-grid {
    display: grid;
    gap: 1.5rem;
}

.card-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.card-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.2;
    user-select: none;
    flex-shrink: 0;
}

.card-text {
    flex: 1;
}

.card-text h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.75rem;
}

html.dark .card-text h4 {
    color: white;
}

.card-text p {
    color: var(--gray-600);
    line-height: 1.625;
    margin-bottom: 1rem;
}

html.dark .card-text p {
    color: #D1D5DB;
}

.highlight {
    color: var(--primary);
    font-weight: 700;
}

.link-box {
    background: var(--background-light);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 2px dashed #D1D5DB;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
}

html.dark .link-box {
    background: var(--background-dark);
    border-color: var(--border-dark);
}

.copyable-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    flex: 1;
    word-break: break-all;
}

.copyable-link:hover {
    text-decoration: underline;
}

.copyable-content {
    flex: 1;
    word-break: break-all;
}

.copy-btn {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.2s;
    flex-shrink: 0;
    color: var(--gray-400);
}

.copy-btn:hover {
    background: rgba(230, 57, 70, 0.1);
    color: var(--primary);
}

.copy-btn .material-icons-round {
    font-size: 1.125rem;
    transition: all 0.2s;
}

.link-box:hover {
    border-color: var(--primary);
    background: rgba(230, 57, 70, 0.05);
}

/* Mobile App Card */
.mobile-app-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .mobile-app-card {
        flex-direction: row;
    }
}

.mobile-app-text {
    flex: 1;
}

.mobile-app-text ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin-top: 1rem;
}

.mobile-app-text li {
    color: var(--gray-500);
    margin: 0.5rem 0;
}

html.dark .mobile-app-text li {
    color: var(--gray-400);
}

.qr-placeholder {
    width: 100%;
    height: 12rem;
    background: #F3F4F6;
    border: 2px dashed #D1D5DB;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-weight: 500;
}

@media (min-width: 768px) {
    .qr-placeholder {
        width: 33.333%;
    }
}

html.dark .qr-placeholder {
    background: var(--surface-darker);
    border-color: #374151;
}

/* ===============================================
   FOOTER
   =============================================== */
.footer {
    margin-top: 5rem;
    padding-top: 2.5rem;
    border-top: 1px solid #E5E7EB;
    text-align: center;
    padding-bottom: 1.5rem;
}

html.dark .footer {
    border-top-color: var(--border-dark);
}

.footer h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

html.dark .footer h3 {
    color: white;
}

.footer p {
    color: var(--gray-500);
    margin-bottom: 2rem;
}

html.dark .footer p {
    color: var(--gray-400);
}

.footer-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 640px) {
    .footer-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.footer-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #F3F4F6;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    color: #1F2937;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

html.dark .footer-btn {
    background: var(--surface-dark);
    color: white;
}

.footer-btn:hover {
    background: #E5E7EB;
    border-color: rgba(230, 57, 70, 0.3);
}

html.dark .footer-btn:hover {
    background: var(--border-dark);
    border-color: rgba(230, 57, 70, 0.3);
}

.footer-btn .material-icons-round {
    color: var(--primary);
}

.footer-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.whatsapp-icon {
    color: #25D366 !important;
}

.footer-btn:hover .whatsapp-icon {
    color: #25D366 !important;
}

.telegram-icon {
    color: #0088cc !important;
}

.footer-btn:hover .telegram-icon {
    color: #0088cc !important;
}
