/* ==========================================
   IGLESIA CORAZÓN DE DIOS - STYLE.CSS
   Heart of God Church - Responsive CSS
   ========================================== */

/* ==========================================
   COLOR SYSTEM
   ========================================== */
:root {
    --primary: #c0392b;
    --primary-dark: #a93226;
    --primary-light: #e74c3c;
    --secondary: #2c3e50;
    --secondary-light: #34495e;
    --accent: #e74c3c;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --text-light: #ecf0f1;
    --border-color: #ecf0f1;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 6px 25px rgba(192, 57, 43, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

input, textarea, select {
    font-family: 'Inter', sans-serif;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.text-white {
    color: var(--text-light);
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.inline {
    display: inline;
}

/* Margin Utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }

/* ==========================================
   ANIMATIONS & KEYFRAMES
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   NAVIGATION / HEADER
   ========================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.navbar-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.navbar-logo a:hover {
    color: var(--primary-dark);
    transform: scale(1.05);
}

.navbar-logo i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.logout-btn {
    background: none;
    padding: 8px 0;
    color: var(--text-dark);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    font-size: 1rem;
    cursor: pointer;
}

.logout-btn:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.admin-login-link {
    color: var(--text-muted);
    font-size: 1.2rem;
    opacity: 0.5;
    transition: all 0.3s ease;
    padding: 5px 10px;
}

.admin-login-link:hover {
    color: var(--primary);
    opacity: 1;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* ==========================================
   RESPONSIVE NAVIGATION (Mobile)
   ========================================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        width: 100%;
        text-align: center;
        display: none;
        box-shadow: var(--shadow-lg);
        gap: 0;
        padding: 20px 0;
    }

    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    .nav-item {
        width: 100%;
        border-bottom: none;
    }

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

    .nav-link,
    .logout-btn {
        display: block;
        padding: 15px 20px;
        width: 100%;
        border-bottom: none;
    }

    .nav-link:hover,
    .logout-btn:hover {
        background-color: var(--bg-light);
        border-bottom: none;
    }

    .navbar-container {
        height: 60px;
    }

    .navbar-logo {
        font-size: 1.2rem;
    }

    .navbar-logo i {
        font-size: 1.4rem;
    }
}

/* ==========================================
   HERO / BANNER SECTION (Facebook Style)
   ========================================== */
.fb-hero-wrapper {
    background-color: var(--bg-white);
    margin-bottom: 0;
}

.fb-cover-photo {
    position: relative;
    width: 100%;
    max-height: 420px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.fb-cover-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.fb-cover-placeholder {
    width: 100%;
    height: 420px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.fb-profile-bar {
    position: relative;
    z-index: 2;
    background: transparent;
    border-bottom: none;
    padding: 0 0 20px 0;
}

.fb-profile-info {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    padding-left: 20px;
    margin-top: -60px;
}

.fb-profile-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 5px solid var(--bg-white);
    object-fit: cover;
    background-color: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.fb-profile-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 5px solid var(--bg-white);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.fb-profile-text {
    padding-bottom: 5px;
}

.fb-profile-text h1 {
    font-size: 2rem;
    color: var(--text-dark);
    margin: 0 0 4px 0;
    font-weight: 700;
    line-height: 1.2;
}

.fb-profile-text p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .fb-cover-img,
    .fb-cover-placeholder {
        height: 280px;
    }

    .fb-profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-left: 0;
        margin-top: -50px;
        gap: 12px;
    }

    .fb-profile-img,
    .fb-profile-placeholder {
        width: 130px;
        height: 130px;
    }

    .fb-profile-text h1 {
        font-size: 1.6rem;
    }

    .fb-profile-text p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .fb-cover-img,
    .fb-cover-placeholder {
        height: 200px;
    }

    .fb-profile-info {
        margin-top: -40px;
    }

    .fb-profile-img,
    .fb-profile-placeholder {
        width: 110px;
        height: 110px;
        border-width: 4px;
    }

    .fb-profile-text h1 {
        font-size: 1.4rem;
    }
}

/* ==========================================
   INTRO / ABOUT SECTION
   ========================================== */
.intro-section {
    padding: 60px 20px;
    background-color: var(--bg-white);
    text-align: center;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-content h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.intro-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .intro-section {
        padding: 40px 20px;
    }

    .intro-content h2 {
        font-size: 2rem;
    }
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services-section {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* Address Card */
.address-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    margin-top: 2rem;
}

.address-card h3 {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
}

.address-card p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.address-card i {
    margin-right: 10px;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .services-section {
        padding: 60px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

/* ==========================================
   POST FEED / WALL SECTION
   ========================================== */
.posts-section {
    padding: 80px 20px;
    background-color: var(--bg-white);
}

.posts-container {
    max-width: 800px;
    margin: 0 auto;
}

.post-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: slideUp 0.5s ease;
}

.post-card:hover {
    box-shadow: var(--shadow-lg);
}

.post-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: none;
}

.post-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    background-color: var(--bg-light);
}

.post-meta {
    flex: 1;
}

.post-author {
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.25rem;
}

.post-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-body {
    padding: 1.5rem;
}

.post-text {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

/* Post Images Grid */
.post-images {
    display: grid;
    gap: 8px;
    margin: 1rem 0;
}

.post-images.one-image {
    grid-template-columns: 1fr;
}

.post-images.two-images {
    grid-template-columns: 1fr 1fr;
}

.post-images.multi-images {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.post-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.post-images.two-images .post-image {
    height: 300px;
}

.post-images.multi-images .post-image {
    height: 200px;
}

.post-image:hover {
    transform: scale(1.02);
    filter: brightness(0.9);
}

/* Post Actions */
.post-actions {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    gap: 1.5rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 5px 10px;
}

.action-btn:hover {
    color: var(--primary);
}

.action-btn i {
    font-size: 1.2rem;
}

.like-btn {
    color: var(--text-muted);
}

.like-btn.liked {
    color: var(--primary);
    animation: pulse 0.4s ease;
}

.like-count {
    font-weight: 600;
}

/* Comments Section */
.comments-section {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-light);
    display: none;
}

.comments-section.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.comment {
    background-color: var(--bg-white);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.comment-author {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.comment-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-text {
    color: var(--text-dark);
    margin-top: 0.5rem;
    line-height: 1.6;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

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

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

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

@media (max-width: 768px) {
    .posts-section {
        padding: 60px 20px;
    }

    .post-images.two-images {
        grid-template-columns: 1fr;
    }

    .post-images.two-images .post-image {
        height: 250px;
    }
}

/* ==========================================
   GALLERY SECTION
   ========================================== */
.gallery-section {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    background-color: var(--bg-light);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(192, 57, 43, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--bg-white);
    font-size: 2.5rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    padding: 20px;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: var(--bg-white);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 60px 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
    padding: 80px 20px;
    background-color: var(--bg-white);
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.contact-card i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-card h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.contact-card a {
    color: var(--primary);
    font-weight: 500;
}

.contact-map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 400px;
    background-color: var(--bg-light);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-map {
        height: 300px;
    }
}

/* ==========================================
   BUTTONS & FORMS
   ========================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-danger {
    background-color: var(--primary);
    color: var(--bg-white);
}

.btn-danger:hover {
    background-color: var(--primary-dark);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
    display: block;
}

/* ==========================================
   ALERTS
   ========================================== */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    border-left: 4px solid;
    animation: slideDown 0.3s ease;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: var(--primary);
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #17a2b8;
}

/* ==========================================
   ADMIN PANEL STYLES
   ========================================== */
.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
    margin-top: 80px;
}

.admin-sidebar {
    background-color: var(--secondary);
    color: var(--text-light);
    padding: 2rem 0;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.admin-sidebar h3 {
    color: var(--text-light);
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-light);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary);
    color: var(--text-light);
}

.admin-content {
    padding: 2rem;
    background-color: var(--bg-light);
    overflow-y: auto;
}

.dashboard-title {
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

.admin-form {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

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

.form-row.full {
    grid-template-columns: 1fr;
}

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

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

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

.image-upload-preview {
    position: relative;
    margin: 1rem 0;
    background-color: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-upload-preview:hover {
    border-color: var(--primary);
    background-color: rgba(192, 57, 43, 0.05);
}

.image-upload-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 5px;
}

.upload-icon {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table thead {
    background-color: var(--primary);
    color: var(--bg-white);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 1rem;
    border-bottom: none;
}

.data-table tbody tr:hover {
    background-color: var(--bg-light);
}

.action-links {
    display: flex;
    gap: 0.5rem;
}

.action-links a {
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.action-links a.edit-link {
    background-color: #3498db;
    color: var(--bg-white);
}

.action-links a.delete-link {
    background-color: var(--primary);
    color: var(--bg-white);
}

.action-links a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .admin-layout {
        grid-template-columns: 1fr;
        margin-top: 60px;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        padding: 1rem 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 0.9rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.75rem;
    }
}

/* ==========================================
   LOADING SPINNER
   ========================================== */
.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-container {
    display: flex;
    justify-content: center;
    padding: 2rem;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: var(--secondary);
    color: var(--text-light);
    padding: 60px 20px 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(236, 240, 241, 0.8);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.tagline {
    color: var(--primary);
    font-style: italic;
    font-weight: 500;
}

.footer-description {
    font-size: 0.9rem;
    color: rgba(236, 240, 241, 0.7);
}

.footer-section a {
    color: var(--text-light);
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-section i {
    margin-right: 8px;
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(236, 240, 241, 0.7);
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer {
        padding: 40px 20px 20px;
    }
}

/* ==========================================
   RESPONSIVE HELPERS
   ========================================== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    body {
        font-size: 14px;
    }

    .btn {
        padding: 10px 20px;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .navbar,
    .footer,
    .admin-sidebar {
        display: none;
    }

    body {
        background-color: white;
        color: black;
    }

    a {
        color: black;
    }
}
