* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Muhabbetci.com Canlı Renk Paleti */
    --muhabbet-blue: #0077FF;
    --muhabbet-dark-blue: #0055CC;
    --muhabbet-light-blue: #E6F2FF;
    --muhabbet-white: #FFFFFF;
    --muhabbet-gray: #F5F5F5;
    --muhabbet-dark: #333333;
    --muhabbet-green: #00DD00;
    --muhabbet-orange: #FF7700;
    --muhabbet-purple: #9966FF;
    --muhabbet-pink: #FF6699;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 119, 255, 0.5); }
    50% { box-shadow: 0 0 20px rgba(0, 119, 255, 0.8), 0 0 30px rgba(0, 119, 255, 0.6); }
}

body {
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 50%, #f5f5f5 100%);
    background-attachment: fixed;
    color: var(--muhabbet-dark);
    line-height: 1.5;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 119, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(153, 102, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

/* Header Styles - Muhabbetci.com benzeri */
.header {
    background: linear-gradient(135deg, var(--muhabbet-blue) 0%, var(--muhabbet-dark-blue) 100%);
    color: white;
    padding: 12px 0;
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.3), 0 2px 5px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideIn 0.6s ease-out;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo:hover {
    text-decoration: none;
    transform: scale(1.05);
}

.logo-icon {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo:hover .logo-icon {
    transform: rotate(8deg) scale(1.15) translateY(-2px);
    filter: drop-shadow(0 4px 8px rgba(0,102,204,0.4));
}

.header-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 15px;
    transition: all 0.3s ease;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nav-link:hover::before {
    width: 300px;
    height: 300px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.login-btn {
    background: linear-gradient(135deg, white 0%, var(--muhabbet-light-blue) 100%);
    color: var(--muhabbet-blue);
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.login-btn:hover {
    background: linear-gradient(135deg, var(--muhabbet-light-blue) 0%, white 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 119, 255, 0.5);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

/* Welcome Box */
.welcome-box {
    background: linear-gradient(135deg, white 0%, var(--muhabbet-light-blue) 100%);
    border: 3px solid var(--muhabbet-blue);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 119, 255, 0.2);
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.welcome-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 119, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.welcome-box h1 {
    background: linear-gradient(135deg, var(--muhabbet-blue) 0%, var(--muhabbet-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 28px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    font-weight: bold;
}

.welcome-box p {
    color: var(--muhabbet-dark);
    font-size: 14px;
    margin-bottom: 15px;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-box {
    background: linear-gradient(135deg, white 0%, var(--muhabbet-light-blue) 100%);
    border: 2px solid var(--muhabbet-blue);
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.15);
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
    position: relative;
    overflow: hidden;
}

.stat-box:nth-child(1) { animation-delay: 0.1s; }
.stat-box:nth-child(2) { animation-delay: 0.2s; }
.stat-box:nth-child(3) { animation-delay: 0.3s; }
.stat-box:nth-child(4) { animation-delay: 0.4s; }

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.stat-box:hover::before {
    left: 100%;
}

.stat-box:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 119, 255, 0.4);
    border-color: var(--muhabbet-purple);
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--muhabbet-blue) 0%, var(--muhabbet-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--muhabbet-dark);
}

/* Chat Rooms */
.chat-rooms {
    background: white;
    border: 2px solid var(--muhabbet-blue);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(0, 119, 255, 0.15);
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
}

.chat-rooms-header {
    background: linear-gradient(135deg, var(--muhabbet-blue) 0%, var(--muhabbet-dark-blue) 100%);
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(0, 119, 255, 0.3);
    position: relative;
}

.chat-rooms-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.chat-rooms-list {
    padding: 15px;
}

.room-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid #eee;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.room-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--muhabbet-blue), var(--muhabbet-purple));
    transform: scaleY(0);
    transition: transform 0.4s;
}

.room-item:hover::before {
    transform: scaleY(1);
}

.room-item:last-child {
    border-bottom: none;
}

.room-item:hover {
    background: linear-gradient(90deg, var(--muhabbet-light-blue) 0%, white 100%);
    transform: translateX(8px);
    box-shadow: -4px 0 15px rgba(0, 119, 255, 0.2);
}

.room-info {
    flex: 1;
}

.room-name {
    font-weight: bold;
    background: linear-gradient(135deg, var(--muhabbet-blue) 0%, var(--muhabbet-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 16px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.room-item:hover .room-name {
    transform: translateX(5px);
}

.room-desc {
    font-size: 13px;
    color: #666;
}

.room-users {
    background: linear-gradient(135deg, var(--muhabbet-green) 0%, #00BB00 100%);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0, 221, 0, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.room-item:hover .room-users {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 221, 0, 0.5);
}

.room-btn {
    background: linear-gradient(135deg, var(--muhabbet-blue) 0%, var(--muhabbet-purple) 100%);
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.room-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.room-btn:hover::before {
    width: 400px;
    height: 400px;
}

.room-btn:hover {
    background: linear-gradient(135deg, var(--muhabbet-purple) 0%, var(--muhabbet-blue) 100%);
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 25px rgba(153, 102, 255, 0.6);
}

/* Main Content */
.main-content {
    background: linear-gradient(135deg, white 0%, var(--muhabbet-light-blue) 100%);
    border: 2px solid var(--muhabbet-blue);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(0, 119, 255, 0.15);
    animation: fadeInUp 1.2s ease-out;
}

.main-content h2 {
    background: linear-gradient(135deg, var(--muhabbet-blue) 0%, var(--muhabbet-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 22px;
    margin-bottom: 15px;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, var(--muhabbet-blue), var(--muhabbet-purple)) 1;
    padding-bottom: 10px;
}

.main-content p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--muhabbet-dark) 0%, #222 100%);
    color: white;
    padding: 25px;
    text-align: center;
    font-size: 12px;
    margin-top: 30px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--muhabbet-blue), var(--muhabbet-purple), var(--muhabbet-green));
}

.footer a {
    color: var(--muhabbet-light-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer a:hover {
    text-decoration: none;
    color: var(--muhabbet-green);
    transform: translateY(-2px);
    text-shadow: 0 2px 5px rgba(0, 221, 0, 0.3);
}

/* Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive - Mobil First Approach */
@media (max-width: 768px) {
    /* Hamburger Menu */
    .mobile-menu-toggle {
        display: flex;
    }

    .header-container {
        flex-wrap: nowrap;
        gap: 15px;
    }

    .header-nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: linear-gradient(135deg, var(--muhabbet-blue) 0%, var(--muhabbet-dark-blue) 100%);
        flex-direction: column;
        padding: 30px 20px;
        gap: 15px;
        transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
        z-index: 999;
        overflow-y: auto;
    }

    .header-nav.active {
        left: 0;
    }

    .nav-link,
    .login-btn {
        padding: 15px 20px;
        font-size: 16px;
        width: 100%;
        text-align: center;
        min-height: 44px; /* Touch-friendly */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-box {
        padding: 15px;
    }

    .stat-number {
        font-size: 24px;
    }

    .room-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }

    .room-btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        min-height: 44px; /* Touch-friendly */
    }

    .welcome-box {
        padding: 20px;
        margin-bottom: 15px;
    }

    .welcome-box h1 {
        font-size: 22px;
    }

    .container {
        padding: 0 10px;
    }

    .main-content {
        padding: 20px;
    }

    .chat-rooms-list {
        padding: 10px;
    }

    .chat-rooms-header {
        font-size: 16px;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 28px;
    }

    .logo span {
        font-size: 18px;
    }

    .logo-icon {
        width: 35px !important;
        height: 35px !important;
    }

    .welcome-box h1 {
        font-size: 20px;
    }

    .welcome-box p {
        font-size: 13px;
    }

    .room-name {
        font-size: 14px;
    }

    .room-desc {
        font-size: 12px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .room-btn,
    .nav-link,
    .login-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .stat-box {
        min-height: 100px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .banner-ad,
    #banner-ad {
        display: none;
    }

    body {
        background: white;
    }

    .main-content {
        box-shadow: none;
        border: none;
    }
}

