/* Reset & Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header Styles */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    height: 60px;
    background-color: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Menu Icon */
.menu-icon {
    display: grid;
    grid-template-columns: repeat(3, 4px);
    gap: 4px;
    cursor: pointer;
    padding: 5px;
}

.menu-dot {
    width: 4px;
    height: 4px;
    background-color: #888;
    border-radius: 50%;
}

.menu-icon:hover .menu-dot {
    background-color: #fff;
}

/* Logo (UPDATED BIGGER) */
.header-logo img {
    height: 50px;
    object-fit: contain;
    display: block;
}

/* Buttons */
.search-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
}

.login-btn {
    background-color: #007bff;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
}

.lang-selector {
    width: 32px;
    height: 32px;
    background-color: #1a1a1a;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #333;
    cursor: pointer;
}

.lang-selector img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* STORY BAR */
.story-container {
    display: flex;
    gap: 15px;
    padding: 15px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: #000;
}

.story-container::-webkit-scrollbar {
    display: none;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    min-width: 70px;
}

.story-ring {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    position: relative;
    margin-bottom: 5px;
}

.story-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #000;
}

.story-name {
    font-size: 11px;
    color: #ccc;
    text-align: center;
    max-width: 70px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.add-story-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 22px;
    height: 22px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* HERO SLIDER */
.hero-section {
    padding: 0 15px;
    margin-bottom: 20px;
}

.banner-card {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.banner-content-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 5;
    text-align: left;
}

.modern-banner-btn {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: #000;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* QUICK ACCESS CATEGORIES (SLIM & DARK) */
.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 Cols Mobile */
    gap: 10px;
    padding: 0 15px;
    margin-bottom: 30px;
}

.category-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    /* Slim Padding */
    border-radius: 12px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.category-card:active {
    transform: scale(0.98);
}

.cat-icon-box {
    width: 34px;
    height: 34px;
    /* Smaller Icons */
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-icon-full {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.cat-text {
    flex: 1;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.cat-arrow {
    font-size: 12px;
    color: #fff;
    opacity: 0.9;
}

/* Colors - Premium Gradients */
.cat-blue {
    background: linear-gradient(90deg, #0b2e4e 0%, #165382 100%);
}

.cat-green {
    background: linear-gradient(90deg, #103f23 0%, #1e733c 100%);
}

.cat-purple {
    background: linear-gradient(90deg, #311440 0%, #612b7a 100%);
}

.cat-gold {
    background: linear-gradient(90deg, #4a3512 0%, #9c722a 100%);
}

.cat-red {
    background: linear-gradient(90deg, #420f0f 0%, #8a1f1f 100%);
}

.cat-grey {
    background: linear-gradient(90deg, #333333 0%, #595959 100%);
}

.category-menu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.98) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    z-index: 9999999 !important;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 0 !important;
}

.category-menu-overlay.active {
    display: flex;
}

.category-menu-content {
    width: 100%;
    max-width: 450px;
    background: #111;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 25px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    animation: menuFadeIn 0.3s ease-out;
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.menu-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.menu-close-btn {
    background: #252525;
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.menu-close-btn:hover {
    background: #333;
    color: #ff4d4d;
}

.category-grid-menu {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
}

.category-grid-menu .category-card {
    display: flex !important;
    margin: 0 !important;
    width: auto !important;
}

/* FEATURED GRID 2x2 */
.featured-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.featured-grid-2x2 .site-card-transparent {
    background: #111;
    border-radius: 12px;
    padding-bottom: 10px;
    border: 1px solid #222;
}

.featured-grid-2x2 .site-content-below {
    padding: 10px;
}


/* MODAL & GENERAL */
/* MODAL & GENERAL */

/* MODAL & GENERAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #161616;
    padding: 30px;
    width: 90%;
    max-width: 380px;
    border-radius: 20px;
    border: 1px solid #333;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    margin: auto;
    /* Ensure centering */
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #252525;
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 30px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #333;
    color: #ff4d4d;
}

.modal-logo img {
    max-width: 150px;
    height: auto;
    margin-bottom: 5px;
    mix-blend-mode: screen;
}

.modal-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
}

/* Form Styles */
.form-group {
    text-align: left;
    margin-bottom: 15px;
}

.form-label {
    display: block;
    color: #bbb;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    margin-left: 2px;
}

.form-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background: #0a0a0a;
    border: 1px solid #333;
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.form-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #fff;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.2s;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* Social & Divider */
.social-login {
    margin-bottom: 20px;
}

.social-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    gap: 10px;
    transition: 0.2s;
}

.btn-telegram {
    background: #0088cc;
    color: #fff;
}

.btn-telegram::after {
    content: "Telegram ile Giriş Yap";
}

.btn-telegram svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.btn-telegram:hover {
    background: #0077b5;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #666;
    font-size: 12px;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #333;
}

.divider::before {
    margin-right: 10px;
}

.divider::after {
    margin-left: 10px;
}

/* Footer Link */
.modal-footer-text {
    margin-top: 20px;
    font-size: 13px;
    color: #888;
}

.link-highlight {
    color: #007bff;
    font-weight: 600;
    margin-left: 5px;
    transition: 0.2s;
}

.link-highlight:hover {
    text-decoration: underline;
    color: #3395ff;
}

/* STORY VIEWER */
.story-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 10000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.viewer-content {
    width: 100%;
    max-width: 500px;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.viewer-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.viewer-header {
    position: absolute;
    top: 20px;
    left: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10002;
}

.viewer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #fff;
}

.viewer-progress-bar {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    display: flex;
    gap: 4px;
    height: 2px;
    z-index: 10002;
}

.progress-segment {
    flex: 1;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    height: 100%;
}

.progress-fill {
    height: 100%;
    background: #fff;
    width: 0%;
}

.nav-left,
.nav-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    z-index: 10001;
}

.nav-left {
    left: 0;
}

.nav-right {
    right: 0;
}

.close-viewer {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10003;
    padding: 10px;
}

.delete-story-btn {
    position: absolute;
    bottom: 30px;
    right: 20px;
    color: #fff;
    background: rgba(220, 53, 69, 0.8);
    backdrop-filter: blur(4px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    z-index: 10005;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: 0.2s;
}

.delete-story-btn:hover {
    background: #dc3545;
    transform: scale(1.1);
}

/* DESKTOP OPTIMIZATIONS (UPDATED LOGO) */
@media (min-width: 992px) {

    .story-container,
    .hero-section,
    .category-grid {
        max-width: 1200px;
        margin: 0 auto;
    }

    .main-header {
        height: 80px;
        padding: 0 50px;
    }

    .header-logo img {
        height: 70px;
    }

    /* BIGGER LOGO DESKTOP */
    .header-left,
    .header-right {
        gap: 20px;
    }

    .story-container {
        padding: 30px 0;
        justify-content: flex-start;
    }

    .story-ring {
        width: 85px;
        height: 85px;
        border-width: 4px;
    }

    .story-name {
        font-size: 14px;
        max-width: 90px;
    }

    .story-item {
        min-width: 100px;
    }

    .hero-section {
        margin-bottom: 40px;
    }

    .banner-card {
        height: 450px;
    }

    .banner-content-overlay {
        bottom: 50px;
        left: 50px;
    }

    .modern-banner-btn {
        padding: 15px 40px;
        font-size: 16px;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 30px 0;
    }

    .category-card {
        padding: 15px 20px;
    }

    .cat-text {
        font-size: 16px;
    }

    .cat-icon-box {
        width: 40px;
        height: 40px;
    }
}

/* Export Modal Styles */
.export-options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.export-option-card {
    background: #252525;
    border: 1px solid #333;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.export-option-card:hover {
    background: #2a2a2a;
    border-color: #444;
}

.export-option-card input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #555;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: 0.2s;
}

.export-option-card input[type="checkbox"]:checked {
    background: #28a745;
    border-color: #28a745;
}

.export-option-card input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: #fff;
    font-size: 14px;
    left: 4px;
    top: -1px;
    font-weight: bold;
}

.export-option-label {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.export-option-icon {
    font-size: 18px;
    color: #aaa;
    width: 24px;
    text-align: center;
}

.btn-secondary {
    width: 100%;
    padding: 14px;
    background: transparent;
    color: #ccc;
    border: 1px solid #444;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-secondary:hover {
    border-color: #666;
    color: #fff;
}

/* Responsive Visibility Utilities */
.visible-mobile { display: none !important; }
.visible-desktop { display: block !important; }

@media (max-width: 768px) {
    .visible-mobile { display: block !important; }
    .visible-desktop { display: none !important; }
}