/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
header {
    background-color: #e54d42; /* Red color from screenshot */
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

#menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

h1 {
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
}

.header-right .ad-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: white;
    z-index: 1002;
    transition: left 0.3s ease;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    background-color: #e54d42;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

#close-sidebar {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
}

.sidebar-menu li {
    border-bottom: 1px solid #eee;
}

.sidebar-menu a {
    display: block;
    padding: 15px 20px;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-menu a:hover {
    background-color: #f9f9f9;
    color: #e54d42;
}

.sidebar-menu i {
    width: 20px;
    text-align: center;
    color: #999;
}

.sidebar-menu a:hover i {
    color: #e54d42;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1001;
    display: none;
}

.overlay.active {
    display: block;
}

/* Main Content */
main {
    padding: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    background-color: white;
    margin-bottom: 20px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.section-title {
    padding: 15px;
    background-color: #fcfcfc;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #666;
    font-weight: bold;
}

.link-grid {
    display: flex;
    flex-wrap: wrap;
}

.link-item {
    width: 100%; /* Default mobile: 1 column */
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    transition: background-color 0.2s;
    font-size: 14px;
}

/* Desktop: 2 columns */
@media (min-width: 768px) {
    .link-item {
        width: 50%;
        border-right: 1px solid #eee;
    }
    
    /* Remove right border for even items (2nd column) */
    .link-item:nth-child(2n) {
        border-right: none;
    }
}

.link-item:hover {
    background-color: #eef7ff; /* Light blue hover effect */
    color: #000;
}

.link-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-item i {
    color: #ccc;
    font-size: 12px;
}

/* Footer */
footer {
    background-color: #333; /* Dark gray footer */
    color: #999;
    padding: 30px 15px;
    text-align: center;
    font-size: 12px;
}

.footer-links {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-links a:hover {
    color: white;
}

/* Scrollbar styling for webkit */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}
