:root {
    --bg-primary: #1e40af;
    --bg-secondary: #2563eb;
    --bg-tertiary: #3b82f6;
    --text-primary: #ffffff;
    --text-secondary: #e0e7ff;
    --text-muted: #c7d2fe;
    --accent: #60a5fa;
    --border: #2563eb;
    --border-hover: #3b82f6;
    --success: #00ff88;
    --warning: #ffaa00;
    --error: #ff4444;
    --offline: #666666;
    --bar-blue: #3b82f6;
}

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

/* Mobil yakınlaştırma/uzaklaştırma engelleme */
html {
    touch-action: pan-x pan-y;
    -ms-touch-action: pan-x pan-y;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

body {
    touch-action: pan-x pan-y;
    -ms-touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100vw;
}

/* Input ve textarea için seçim izni */
input, textarea, [contenteditable], select {
    -webkit-user-select: text;
    user-select: text;
    touch-action: manipulation;
}

/* Butonlar için touch-action */
button, a, [role="button"], .btn {
    touch-action: manipulation;
    -ms-touch-action: manipulation;
}

.muted {
    color: var(--text-muted);
}

/* Force cursor visibility on interactive elements */
button, .filter-btn, a, input, [role="button"], [onclick], .project-card, .project-link, .project-image {
    cursor: pointer !important;
}

/* Remove link styling from project cards */
.project-card,
.project-card:hover,
.project-card:visited,
.project-card:active,
.project-card:focus {
    text-decoration: none !important;
    color: inherit !important;
    outline: none;
}

/* Global image sharpness rules */
img, .project-img, [class*="img"], [class*="image"] {
    filter: none !important;
    -webkit-filter: none !important;
    -moz-filter: none !important;
    -ms-filter: none !important;
    -o-filter: none !important;
    image-rendering: auto !important;
    image-rendering: crisp-edges !important;
    image-rendering: -webkit-optimize-contrast !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-content {
    max-width: 100%;
    margin: 0;
    padding: 0.9rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}
.listings-section-home {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.listings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.filters-home {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter-buttons-home {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn-home {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: 500;
}
.filter-btn-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}
.filter-btn-home:hover::before {
    left: 100%;
}
.filter-btn-home:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.filter-btn-home.active {
    background: var(--bg-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    }
}

.listings-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.listing-card-home {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    display: block;
}

.listing-card-home:hover {
    transform: translateY(-6px);
    border-color: rgba(37,99,235,0.4);
    box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}

.listing-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.listing-card-home:hover .listing-image img {
    transform: scale(1.04);
}

.listing-image-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2.4rem;
}

.listing-info {
    padding: 1.25rem;
}

.listing-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.listing-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-sale {
    background: rgba(34,197,94,0.16);
    color: #22c55e;
}

.badge-rent {
    background: rgba(37,99,235,0.16);
    color: #2563eb;
}

.badge-muted {
    background: rgba(255,255,255,0.08);
    color: var(--text-secondary);
}

.listing-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.listing-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.listings-cta {
    text-align: center;
    margin-top: 2rem;
}

.btn-ghost-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-ghost-primary::before {
    content: '';
    position: absolute;
    left: -40%;
    top: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-20deg);
    transition: left 0.35s ease;
}

.btn-ghost-primary:hover {
    border-color: var(--border-hover);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
    color: var(--text-primary);
    background: var(--bg-tertiary);
    transform: translateY(-3px);
}

.btn-ghost-primary:hover::before {
    left: 120%;
}

.btn-ghost-primary + .cta-underline {
    width: 180px;
    height: 2px;
    background: var(--border);
    margin: 0.75rem auto 0;
    border-radius: 999px;
}

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

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: var(--text-primary);
}

.nav-item.active {
    color: var(--text-primary);
    font-weight: 600;
}


.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 2rem;
}

.hero {
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(50px);
    animation: profileEnter 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

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

.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
}

.default-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 3rem;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.avatar-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotate 3s linear infinite;
}

.avatar-container:hover::before {
    opacity: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
}

.avatar:hover {
    transform: scale(1.05);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.name {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary) !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    background-clip: unset !important;
    animation: none !important;
}

.social-links {
    display: flex;
    gap: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: socialEnter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

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

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-8px) scale(1.1);
}

.social-link.admin-link {
    border: none !important;
    color: var(--accent);
    background: transparent;
}

.social-link.admin-link:hover {
    border: none !important;
    color: var(--accent);
    background: rgba(37, 99, 235, 0.1);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(50px);
    animation: widgetsEnter 1s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}

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

.widget {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.widget:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.profile-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.name {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.title {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.social-links {
    display: flex;
    gap: 1rem;
}

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

.social-link:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.widget {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.widget:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.widget-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--offline) !important;
}

.status-dot.online {
    background: var(--success) !important;
}

.status-dot.playing {
    background: var(--success) !important;
    animation: pulse 2s infinite;
}

.status-dot.active {
    background: var(--accent) !important;
}

.status-dot.dnd {
    background: #ff4444 !important;
}
.status-dot.idle {
    background: #ffaa00 !important;
}
.status-dot.notplaying {
    background: #ff4444 !important;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.widget-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.discord-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.discord-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.discord-details {
    flex: 1;
    min-width: 0;
}

.discord-username {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discord-activity {
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-image-container {
    display: flex;
    justify-content: center;
}

.activity-image {
    max-width: 100px;
    max-height: 100px;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: none;
}

.spotify-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.album-art {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: none;
}

.track-info {
    flex: 1;
    min-width: 0;
}

.track-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-name {
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.time-display {
    text-align: center;
}

.current-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.current-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.footer {
    margin-top: 4rem;
    padding: 2rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

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

.notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    z-index: 10000;
    transform: translateY(100px) scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 320px;
    min-width: 280px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.3),
        0 10px 10px -5px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    word-wrap: break-word;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.notification:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px) scale(1);
    box-shadow: 
        0 25px 30px -5px rgba(0, 0, 0, 0.4),
        0 15px 15px -5px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.notification::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--success);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.notification.show {
    animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 768px) {
    .notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .hero-content {
        gap: 2rem;
    }
    
    .profile-section {
        gap: 1rem;
    }
    
    .avatar-container {
        width: 100px;
        height: 100px;
    }
    
    .default-avatar {
        font-size: 2.5rem;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .current-time {
        font-size: 1.5rem;
    }
}

/* Welcome Notification */
.welcome-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInRight 0.5s ease-out, fadeOut 4s ease-in-out 3s forwards;
    font-weight: 500;
    max-width: 350px;
}

.welcome-notification i {
    font-size: 1.2rem;
    color: white;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    0%, 75% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
        visibility: hidden;
    }
}

@media (max-width: 768px) {
    .welcome-notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}