/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Tahoma, Arial, sans-serif;
    background: #e8e8e8;
    color: #333;
    font-size: 13px;
}

.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Desktop için geniş container */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
        padding: 0 30px;
    }
}

/* ========== HEADER ========== */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slogan {
    font-size: 12px;
    opacity: 0.9;
}

.top-stats {
    display: flex;
    gap: 30px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #ffd700;
}

.stat-label {
    display: block;
    font-size: 11px;
    margin-top: 3px;
}

/* ========== NAVIGATION ========== */
.navbar {
    background: #2c3e50;
    border-bottom: 3px solid #e74c3c;
}

.navbar .container {
    display: flex;
    gap: 5px;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.3s;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.navbar a:hover,
.navbar a.active {
    background: #e74c3c;
}

/* ========== MAIN WRAPPER ========== */
.main-wrapper {
    padding: 20px 0;
}

.main-wrapper .container {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 25px;
}

/* Geniş ekranlarda daha iyi dağılım */
@media (min-width: 1600px) {
    .main-wrapper .container {
        grid-template-columns: 320px 1fr 320px;
        gap: 30px;
    }
}

/* ========== SIDEBAR ========== */
.sidebar {
    background: white;
}

.widget {
    background: white;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.widget-title {
    background: linear-gradient(to bottom, #3498db, #2980b9);
    color: white;
    padding: 10px;
    font-size: 12px;
    font-weight: bold;
    border-bottom: 2px solid #2574a9;
}

.widget-content {
    padding: 10px;
}

.announcement {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.announcement:last-child {
    border-bottom: none;
}

.announcement .date {
    display: block;
    font-size: 10px;
    color: #999;
    margin-bottom: 3px;
}

.announcement p {
    font-size: 11px;
    line-height: 1.5;
}

.popular-room {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 11px;
}

.popular-room:last-child {
    border-bottom: none;
}

.room-name {
    font-weight: bold;
    color: #2980b9;
}

.room-users {
    color: #27ae60;
    font-weight: bold;
}

.new-member {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 11px;
}

.new-member:last-child {
    border-bottom: none;
}

.member-name {
    color: #2c3e50;
    font-weight: bold;
}

.member-time {
    color: #95a5a6;
    font-size: 10px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 11px;
}

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

.stat-label {
    color: #666;
}

.stat-value {
    font-weight: bold;
    color: #e74c3c;
}

.quick-link {
    display: block;
    padding: 8px 0;
    color: #2980b9;
    text-decoration: none;
    font-size: 11px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.quick-link:last-child {
    border-bottom: none;
}

.quick-link:hover {
    color: #e74c3c;
    padding-left: 5px;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    background: white;
}

.section-title {
    background: linear-gradient(to bottom, #e74c3c, #c0392b);
    color: white;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 0;
    text-transform: uppercase;
    border-bottom: 3px solid #a93226;
}

/* ========== LOGIN SECTION ========== */
.login-section {
    border: 2px solid #e74c3c;
    margin-bottom: 20px;
}

.login-form {
    padding: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #2c3e50;
    font-size: 12px;
}

.form-group input,
.form-group select {
    padding: 8px;
    border: 1px solid #bdc3c7;
    font-size: 12px;
    font-family: Tahoma, Arial, sans-serif;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
}

.btn-enter {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to bottom, #27ae60, #229954);
    color: white;
    border: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s;
}

.btn-enter:hover {
    background: linear-gradient(to bottom, #229954, #1e8449);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(39,174,96,0.4);
}

/* ========== ROOMS SECTION ========== */
.rooms-section {
    border: 2px solid #3498db;
    margin-bottom: 20px;
}

.rooms-list {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Geniş ekranlarda 3 kolon */
@media (min-width: 1600px) {
    .rooms-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

.room-item {
    border: 2px solid #ecf0f1;
    padding: 15px;
    background: #f8f9fa;
    transition: all 0.3s;
}

.room-item:hover {
    border-color: #3498db;
    box-shadow: 0 3px 10px rgba(52,152,219,0.2);
}

.room-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.room-icon {
    font-size: 28px;
}

.room-header h3 {
    flex: 1;
    font-size: 14px;
    color: #2c3e50;
}

.online-badge {
    background: #27ae60;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
}

.room-desc {
    font-size: 11px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.btn-join {
    width: 100%;
    padding: 8px;
    background: #3498db;
    color: white;
    border: none;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-join:hover {
    background: #2980b9;
}

/* ========== FEATURES SECTION ========== */
.features-section {
    border: 2px solid #27ae60;
    margin-bottom: 20px;
}

.features-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Geniş ekranlarda 4 kolon */
@media (min-width: 1600px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}

.feature-box {
    text-align: center;
    padding: 20px 10px;
    background: #f8f9fa;
    border: 1px solid #ecf0f1;
    transition: all 0.3s;
}

.feature-box:hover {
    background: white;
    border-color: #27ae60;
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.feature-box h4 {
    font-size: 13px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.feature-box p {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

/* ========== FOOTER ========== */
.footer {
    background: #2c3e50;
    color: white;
    padding: 20px 0;
    margin-top: 20px;
    text-align: center;
}

.footer-content p {
    margin: 5px 0;
    font-size: 11px;
}

.coder-credit {
    margin-top: 10px !important;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 10px !important;
}

.coder-credit strong {
    color: #e74c3c;
    font-weight: bold;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .main-wrapper .container {
        grid-template-columns: 1fr;
    }
    
    .left-sidebar,
    .right-sidebar {
        display: none;
    }
    
    .rooms-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .rooms-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .top-stats {
        justify-content: center;
    }
    
    .navbar .container {
        flex-wrap: wrap;
    }
    
    .navbar a {
        font-size: 11px;
        padding: 10px 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .rooms-list {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== CONTENT BOX ========== */
.content-box {
    border: 2px solid #3498db;
    margin-bottom: 20px;
    background: white;
}

.content-inner {
    padding: 25px;
}

.content-inner h3 {
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 16px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.content-inner p {
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 13px;
    color: #555;
}

.content-inner ul,
.content-inner ol {
    margin: 15px 0;
    padding-left: 30px;
}

.content-inner li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 13px;
}

.content-inner a {
    color: #3498db;
    text-decoration: none;
}

.content-inner a:hover {
    text-decoration: underline;
}

/* ========== ARTICLES LIST ========== */
.articles-list {
    margin: 15px 0 30px 0;
}

.article-item {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.article-item:hover {
    background: #e8f4f8;
    border-left-color: #e74c3c;
    transform: translateX(5px);
}

.article-item a {
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: #2c3e50;
    gap: 15px;
}

.article-number {
    background: #3498db;
    color: white;
    padding: 5px 12px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 12px;
}

.article-title {
    flex: 1;
    font-weight: bold;
    font-size: 13px;
}

.article-arrow {
    color: #3498db;
    font-size: 18px;
    font-weight: bold;
}

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

.room-item,
.feature-box {
    animation: fadeIn 0.5s ease-in-out;
}

