:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --instagram: #e4405f;
    --instagram-dark: #c13584;
    --instagram-gradient: linear-gradient(135deg, #feda77, #f58529, #dd2a7b, #8134af, #515bd4);
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --gray: #94a3b8;
    --gray-dark: #64748b;
    --border: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(15, 23, 42, 0.8);
    --glass: rgba(255, 255, 255, 0.03);
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 40px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(145deg, var(--darker) 0%, #0a0f1a 50%, #1a1a2e 100%);
    color: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animasyonlu Arka Plan */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-animation::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(228, 64, 95, 0.1) 0%, transparent 50%);
    animation: bgPulse 15s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { transform: translate(-10%, -10%) rotate(0deg); opacity: 0.5; }
    50% { transform: translate(10%, 10%) rotate(5deg); opacity: 1; }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: linear-gradient(135deg, var(--primary), var(--instagram));
    border-radius: 50%;
    pointer-events: none;
    animation: float 20s infinite linear;
    opacity: 0.15;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.2; }
    90% { opacity: 0.2; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(228, 64, 95, 0.15), rgba(99, 102, 241, 0.15));
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(228, 64, 95, 0.3);
}

.hero-title {
    font-size: clamp(2rem, 7vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--instagram) 40%, var(--primary-light) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.credit-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(99, 102, 241, 0.15));
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    margin-top: 1rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 1.2rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Filters Bar */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    padding: 1rem 1.5rem;
    border-radius: 60px;
    border: 1px solid var(--border);
}

.search-box {
    flex: 2;
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 60px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.search-box input {
    flex: 1;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 0.9rem;
}

.search-box input::placeholder {
    color: var(--gray-dark);
}

.search-box input:focus {
    outline: none;
}

.search-box button {
    padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, var(--instagram), var(--instagram-dark));
    border: none;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.search-box button:hover {
    filter: brightness(1.1);
}

.filter-select {
    padding: 0.8rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 60px;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
}

.filter-select:focus {
    outline: none;
}

.share-btn {
    background: linear-gradient(135deg, var(--instagram), var(--instagram-dark));
    padding: 0.8rem 1.8rem;
    border-radius: 60px;
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s;
}

.share-btn:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* ==================== KART TASARIMI ==================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
}

.instagram-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.4s ease;
}

.instagram-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: var(--shadow-glow);
}

/* Kapak Banner */
.card-cover {
    height: 110px;
    background: linear-gradient(135deg, #1e1b4b, #2e1065, #4c1d95);
    position: relative;
}

.card-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(228, 64, 95, 0.3));
}

/* Profil Resmi - Banner'ın ALTINDA (üstüne binmez) */
.profile-wrapper {
    display: flex;
    justify-content: center;
    margin-top: -55px;
    margin-bottom: 12px;
    position: relative;
    z-index: 5;
}

.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--instagram-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--card-bg);
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 10;
}

.instagram-card:hover .profile-image {
    transform: scale(1.05);
    border-color: var(--instagram);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-image i {
    font-size: 2.8rem;
    color: white;
}
/* Kart İçeriği */
.card-body {
    padding: 0 18px 18px;
}

/* Kullanıcı Bilgileri */
.user-info {
    text-align: center;
    margin-bottom: 15px;
}

.username {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.username:hover {
    color: var(--instagram);
}

.verified-badge {
    background: #3b82f6;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    margin-left: 5px;
}

.fullname {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 4px 0;
}

.category {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    margin-top: 6px;
}

/* İstatistikler - 4'lü Grid */
.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 8px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    padding: 12px 8px;
    margin: 12px 0;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-num {
    font-weight: 700;
    font-size: 1rem;
    color: white;
}

.stat-text {
    font-size: 0.6rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Bio Bölümü */
.bio-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 12px;
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.4;
    margin: 12px 0;
    min-height: 70px;
}

.website {
    display: inline-block;
    color: #818cf8;
    text-decoration: none;
    font-size: 0.7rem;
    margin-top: 6px;
}

.website:hover {
    color: var(--instagram);
}

/* Butonlar - Yanyana */
.buttons {
    display: flex;
    gap: 12px;
    margin: 15px 0 12px;
}

.btn-follow {
    flex: 1;
    background: linear-gradient(135deg, var(--instagram), var(--instagram-dark));
    border: none;
    border-radius: 40px;
    padding: 10px;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-follow:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.btn-like {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 10px 20px;
    color: var(--gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.btn-like:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
}

.btn-like.liked {
    color: #ef4444;
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

/* Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    margin-top: 8px;
    font-size: 0.65rem;
    color: var(--gray-dark);
    border-top: 1px solid var(--border);
}

.delete-btn {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.65rem;
}

.delete-btn:hover {
    background: #ef4444;
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 32px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid var(--border);
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray);
    font-size: 0.8rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: white;
    font-size: 0.9rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-control {
    resize: vertical;
    font-family: inherit;
}

.alert {
    padding: 1rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--success);
    color: #6ee7b7;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--danger);
    color: #fca5a5;
}

.empty-state {
    text-align: center;
    padding: 4rem;
    background: var(--card-bg);
    border-radius: 32px;
}

.empty-state i {
    font-size: 4rem;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Tooltip */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.4rem 0.8rem;
    background: var(--dark);
    color: white;
    font-size: 0.7rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 10;
}

[data-tooltip]:hover:before {
    opacity: 1;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--instagram));
    border-radius: 10px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .container {
        padding: 1.5rem;
    }
    
    .cards-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .filters-bar {
        flex-direction: column;
        border-radius: 32px;
        padding: 1rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .profile-image {
        width: 80px;
        height: 80px;
    }
    
    .profile-wrapper {
        margin-top: -42px;
    }
    
    .card-cover {
        height: 95px;
    }
    
    .buttons {
        flex-direction: column;
    }
    
    .btn-like {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .stats-grid .stat-card:nth-child(3),
    .stats-grid .stat-card:nth-child(4) {
        display: none;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .profile-image {
        width: 70px;
        height: 70px;
    }
    
    .profile-wrapper {
        margin-top: -35px;
    }
    
    .card-cover {
        height: 85px;
    }
    
    .username {
        font-size: 1rem;
    }
    
    .stat-num {
        font-size: 0.85rem;
    }
    
    .stat-text {
        font-size: 0.55rem;
    }
    
    .card-footer {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
}
/* Rozet stilleri */
.badge-popular {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-vip {
    background: linear-gradient(135deg, #eab308, #ca8a04);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-verified {
    background: #3b82f6;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Save ve QR buton stilleri */
.btn-save, .btn-qr {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 10px 15px;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-save:hover, .btn-qr:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

.btn-save.saved {
    color: #f59e0b;
    border-color: #f59e0b;
}

/* Yorumlar */
.comments-list::-webkit-scrollbar {
    width: 4px;
}

.comments-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.comment-item {
    padding: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.75rem;
}

.comment-item strong {
    color: var(--instagram);
}

.comment-item small {
    color: var(--gray-dark);
    font-size: 0.6rem;
    margin-left: 8px;
}
/* Yorum silme butonu */
.delete-comment-btn {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 4px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.3s;
}

.delete-comment-btn:hover {
    background: #ef4444;
    color: white;
}