/* ===== ძირითადი სტილები ===== */
:root {
    --primary-color: #d4af37; /* ოქროსფერი */
    --secondary-color: #8b0000; /* მუქი წითელი */
    --dark-bg: #0a0a0a; /* მუქი ფონი */
    --medium-bg: #1a1a1a;
    --light-bg: #2a2a2a;
    --text-color: #e0e0e0;
    --text-muted: #888;
    --border-color: #333;
    --font-georgian: 'Noto Sans Georgian', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-georgian);
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    background-image: url('../images/bg-pattern.png');
    background-repeat: repeat;
    position: relative;
    overflow-x: hidden;
}

/* ორნამენტების დეკორაცია */
.ornament-top, .ornament-bottom, .ornament-left, .ornament-right {
    position: fixed;
    z-index: -1;
    pointer-events: none;
    opacity: 0.1;
}

.ornament-top {
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: url('../images/ornament-top.png') repeat-x top center;
}

.ornament-bottom {
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: url('../images/ornament-bottom.png') repeat-x bottom center;
}

.ornament-left {
    left: 0;
    top: 0;
    bottom: 0;
    width: 100px;
    background: url('../images/ornament-left.png') repeat-y left center;
}

.ornament-right {
    right: 0;
    top: 0;
    bottom: 0;
    width: 100px;
    background: url('../images/ornament-right.png') repeat-y right center;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ===== HEADER ===== */
.site-header {
    background-color: rgba(10, 10, 10, 0.95);
    border-bottom: 3px solid var(--primary-color);
    padding: 20px 0;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%, 
        var(--primary-color) 100%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo img {
    height: 50px;
    margin-right: 15px;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
}

.site-name {
    font-family: var(--font-mono);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* მთავარი მენიუ */
.main-menu ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-menu a {
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.main-menu a:hover,
.main-menu a.active {
    color: var(--primary-color);
    background-color: rgba(212, 175, 55, 0.1);
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-menu a:hover::after,
.main-menu a.active::after {
    width: 70%;
}

/* ძებნის ველი */
.search-box {
    display: flex;
    align-items: center;
}

.search-box form {
    display: flex;
    background: var(--medium-bg);
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.search-box input {
    background: transparent;
    border: none;
    padding: 10px 20px;
    color: var(--text-color);
    width: 250px;
    font-family: var(--font-georgian);
}

.search-box input:focus {
    outline: none;
}

.search-box button {
    background: var(--primary-color);
    border: none;
    padding: 10px 20px;
    color: var(--dark-bg);
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: #b8941f;
}

/* ===== კონტენტის განლაგება ===== */
.content-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 30px;
    margin-bottom: 50px;
}

@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 200px 1fr 200px;
    }
}

@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: 3;
        margin-top: 30px;
    }
}

/* მთავარი კონტენტი */
.main-content {
    background-color: var(--medium-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

/* ===== საიტბარები ===== */
.sidebar {
    background-color: var(--medium-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.sidebar h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    color: var(--text-color);
    text-decoration: none;
    padding: 8px;
    display: block;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sidebar a:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    padding-left: 15px;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--dark-bg);
    border-top: 3px solid var(--primary-color);
    padding: 40px 0;
    margin-top: 50px;
    position: relative;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo img {
    height: 40px;
    filter: brightness(0.8);
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.footer-menu ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.footer-menu a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: var(--primary-color);
}

/* ===== DLE კომპონენტების სტილი ===== */
.news-item {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.news-title a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
}

.news-title a:hover {
    text-decoration: underline;
}

.news-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 10px 0;
    display: flex;
    gap: 15px;
}

.news-text {
    margin-top: 15px;
    color: var(--text-color);
}

/* ღილაკები */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-georgian);
}

.btn:hover {
    background-color: #b8941f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* პაგინაცია */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 8px 15px;
    background-color: var(--light-bg);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

/* ფორმები */
input, textarea, select {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: 5px;
    font-family: var(--font-georgian);
    width: 100%;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* სტატუსბარი */
.online {
    color: #4CAF50;
    font-weight: bold;
}

.offline {
    color: #F44336;
}

/* ===== სპეციალური კლასები ===== */
.georgian-pattern {
    background-image: url('../images/pattern-small.png');
    background-repeat: repeat;
    padding: 20px;
    border-radius: 8px;
    position: relative;
}

.georgian-border {
    border: 2px solid var(--primary-color);
    border-image: url('../images/border-pattern.png') 30 stretch;
    padding: 15px;
}