/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #FFFFFF;
    color: #333;
    line-height: 1.6;
}

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

/* Header */
.header {
    background-color: #e6f0fa;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
}

.nav {
    display: flex;
    justify-content: flex-end;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    transition: color 0.3s;
}

.nav a:hover {
    color: #e63946;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero */
.hero {
    background-color: #ADD8E6;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-button {
    background-color: #FF4D4D;
    color: #FFFFFF;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #e63946;
}

/* Post Grid */
.post-grid, .song-grid, .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.post-card, .song-card, .category-card {
    background-color: #e6f0fa;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.post-card:hover, .song-card:hover, .category-card:hover {
    transform: translateY(-5px);
}

.post-card img {
    width: 100%;
    border-radius: 8px;
}

.tag {
    background-color: #FF4D4D;
    color: #FFFFFF;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Newsletter */
.newsletter {
    background-color: #ADD8E6;
    padding: 2rem;
    text-align: center;
}

.newsletter input {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 1rem;
}

.newsletter button {
    background-color: #FF4D4D;
    color: #FFFFFF;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.newsletter button:hover {
    background-color: #e63946;
}

/* Sidebar */
.sidebar {
    max-width: 300px;
    margin: 2rem auto;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.tag-cloud a {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* Footer */
.footer {
    background-color: #e6f0fa;
    padding: 2rem 0;
    text-align: center;
}

.social-links img {
    width: 24px;
    margin: 0 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav {
        display: none;
    }

    .nav.active {
        display: block;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #e6f0fa;
        padding: 1rem;
    }

    .nav ul {
        flex-direction: column;
        text-align: center;
    }

    .nav li {
        margin: 0.5rem 0;
    }

    .sidebar {
        max-width: 100%;
        margin: 1rem auto;
    }

    /* Ensure content and sidebar stack vertically */
    .container {
        display: flex;
        flex-direction: column;
    }
}

@media (min-width: 769px) {
    .container {
        display: flex;
        flex-wrap: wrap;
    }

    .sidebar {
        flex: 0 0 300px;
        margin-left: 2rem;
    }

    .content {
        flex: 1;
        max-width: calc(100% - 340px);
    }
}
.admin-panel {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-panel h2, .admin-panel h3 {
    margin-bottom: 20px;
    color: #333;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-weight: bold;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="file"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #007bff;
    outline: none;
}

.form-group input[type="file"] {
    padding: 5px;
}

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

.form-group select[multiple] {
    height: 120px;
}

.form-group small {
    color: #666;
    font-size: 12px;
}

.form-group input[type="checkbox"] {
    width: auto;
}

.error, .success {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.error {
    background: #f8d7da;
    color: #721c24;
}

.success {
    background: #d4edda;
    color: #155724;
}

.logout-link {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.logout-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .admin-panel {
        padding: 15px;
    }
    .form-group input[type="text"],
    .form-group input[type="file"],
    .form-group textarea,
    .form-group select {
        font-size: 14px;
    }
}