/* Biolojiya Qəzeti - Universal CSS Sinifləri */

/* Reset və əsas stillər */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2a 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin: 0;
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255,255,255,0.2);
}

.admin-link {
    background-color: rgba(255,255,255,0.15);
    font-weight: bold;
}

/* Main Content */
.main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 10px;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 2.5rem;
    color: #2d5016;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #4a7c2a;
}

/* Section Title */
.section-title {
    font-size: 2rem;
    color: #2d5016;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #4a7c2a;
}

/* Xəbərlər Grid */
.xeberler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Xəbər Kartı */
.xeber-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.xeber-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.xeber-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #e8f5e9;
}

.xeber-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xeber-content {
    padding: 1.5rem;
}

.xeber-title {
    font-size: 1.5rem;
    color: #2d5016;
    margin-bottom: 0.5rem;
}

.xeber-kateqoriya {
    display: inline-block;
    background-color: #e8f5e9;
    color: #2d5016;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.xeber-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.xeber-date {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.xeber-muellif {
    color: #4a7c2a;
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

.xeber-text {
    color: #555;
    line-height: 1.8;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 10px;
    color: #666;
}

/* Footer */
.footer {
    background-color: #2d5016;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

/* Form Elementləri */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2d5016;
    font-weight: bold;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #c8e6c9;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #4a7c2a;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Butonlar */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #4a7c2a;
    color: white;
}

.btn-primary:hover {
    background-color: #2d5016;
}

.btn-danger {
    background-color: #d32f2f;
    color: white;
}

.btn-danger:hover {
    background-color: #b71c1c;
}

.btn-secondary {
    background-color: #757575;
    color: white;
}

.btn-secondary:hover {
    background-color: #616161;
}

/* Admin Panel */
.admin-panel {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.admin-tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.admin-tab.active {
    color: #2d5016;
    border-bottom-color: #4a7c2a;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Xəbərlər Cədvəli */
.xeberler-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.xeberler-table th,
.xeberler-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.xeberler-table th {
    background-color: #e8f5e9;
    color: #2d5016;
    font-weight: bold;
}

.xeberler-table tr:hover {
    background-color: #f5f5f5;
}

/* CSS Redaktor */
.css-editor {
    width: 100%;
    min-height: 500px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    padding: 1rem;
    border: 2px solid #c8e6c9;
    border-radius: 5px;
    background-color: #fafafa;
}

/* Alert Mesajları */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #c8e6c9;
    color: #2d5016;
    border: 1px solid #4a7c2a;
}

.alert-error {
    background-color: #ffcdd2;
    color: #c62828;
    border: 1px solid #d32f2f;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        justify-content: center;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .xeberler-grid {
        grid-template-columns: 1fr;
    }

    .admin-tabs {
        flex-wrap: wrap;
    }
}

