/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f9fafb;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.q8-logo {
    background: white;
    color: #dc2626;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.q8-logo:hover {
    transform: scale(1.05);
}

.brand-text h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.brand-text p {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid white;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-container {
    position: relative;
    display: none;
}

.search-input {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    background: rgba(255,255,255,0.1);
    color: white;
    width: 250px;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-input:focus {
    outline: none;
    background: white;
    color: #1f2937;
    border-color: white;
    width: 300px;
}

.search-input:focus::placeholder {
    color: #9ca3af;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.7);
    pointer-events: none;
}

.auth-buttons {
    display: flex;
    gap: 0.75rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-primary {
    background: white;
    color: #dc2626;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.8);
}

.btn-outline:hover {
    background: white;
    color: #dc2626;
    border-color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    color: #dc2626;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* Hero Section */
.hero {
    position: relative;
    color: white;
    text-align: center;
    padding: 8rem 0;
    overflow: hidden;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(31, 41, 55, 0.8), rgba(55, 65, 81, 0.8)), 
                url('https://images.unsplash.com/photo-1544829103-c447b7901b3c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2089&q=80') center/cover;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    min-width: 120px;
}

.stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #fbbf24;
    margin-bottom: 0.25rem;
}

.stat span {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Quick Actions */
.quick-actions {
    padding: 4rem 0;
    background: white;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.action-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: 16px;
    border: 2px solid #fecaca;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
    transition: left 0.5s ease;
}

.action-card:hover::before {
    left: 100%;
}

.action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.2);
    border-color: #dc2626;
}

.action-card i {
    font-size: 3rem;
    color: #dc2626;
    margin-bottom: 1.5rem;
    display: block;
}

.action-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.action-card p {
    color: #6b7280;
    font-weight: 500;
}

/* Forum Section */
.forum-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2,
.section-header h3 {
    font-size: 2.5rem;
    color: #1f2937;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #6b7280;
    font-weight: 500;
}

.recent-topics .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 2px solid #f3f4f6;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(220, 38, 38, 0.15);
    border-color: #fecaca;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.category-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    padding: 1.25rem;
    border-radius: 16px;
    color: #dc2626;
    border: 2px solid #fee2e2;
    min-width: 80px;
    text-align: center;
}

.category-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}

.category-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-weight: 500;
}

.category-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #9ca3af;
    border-top: 1px solid #f3f4f6;
    padding-top: 1rem;
    font-weight: 600;
}

.category-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-last-post {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #9ca3af;
    font-style: italic;
}

/* Recent Topics */
.recent-topics {
    padding: 5rem 0;
    background: #f9fafb;
}

.topics-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.topic-item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.topic-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-radius: 0 4px 4px 0;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.topic-item:hover::before {
    transform: scaleY(1);
}

.topic-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.15);
    border-color: #fecaca;
}

.topic-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.topic-left {
    flex: 1;
}

.topic-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.topic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.topic-meta span {
   display: flex;
   align-items: center;
   gap: 0.3rem;
}

.topic-right {
   text-align: right;
   font-size: 0.85rem;
   color: #9ca3af;
   font-weight: 600;
}

.topic-preview {
   color: #6b7280;
   font-size: 0.95rem;
   line-height: 1.6;
   margin-top: 0.5rem;
   display: -webkit-box;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
   overflow: hidden;
}

/* Gallery Preview */
.gallery-preview {
   padding: 5rem 0;
   background: white;
}

.gallery-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   gap: 1.5rem;
}

.gallery-item {
   position: relative;
   border-radius: 12px;
   overflow: hidden;
   cursor: pointer;
   transition: all 0.3s ease;
   aspect-ratio: 16/10;
}

.gallery-item img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform 0.3s ease;
}

.gallery-overlay {
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: linear-gradient(135deg, rgba(220, 38, 38, 0.8), rgba(185, 28, 28, 0.8));
   display: flex;
   align-items: center;
   justify-content: center;
   opacity: 0;
   transition: opacity 0.3s ease;
}

.gallery-overlay i {
   color: white;
   font-size: 2rem;
}

.gallery-item:hover .gallery-overlay {
   opacity: 1;
}

.gallery-item:hover img {
   transform: scale(1.1);
}

.gallery-item:hover {
   transform: translateY(-5px);
   box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* Market Preview */
.market-preview {
   padding: 5rem 0;
   background: #f9fafb;
}

.market-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
   gap: 2rem;
}

.market-item {
   background: white;
   border-radius: 12px;
   padding: 2rem;
   box-shadow: 0 4px 15px rgba(0,0,0,0.08);
   border: 1px solid #f3f4f6;
   transition: all 0.3s ease;
   cursor: pointer;
   position: relative;
}

.market-item:hover {
   transform: translateY(-5px);
   box-shadow: 0 15px 40px rgba(220, 38, 38, 0.15);
   border-color: #fecaca;
}

.market-badge {
   position: absolute;
   top: -10px;
   right: 20px;
   background: linear-gradient(135deg, #dc2626, #b91c1c);
   color: white;
   padding: 0.5rem 1rem;
   border-radius: 20px;
   font-size: 0.8rem;
   font-weight: 600;
   box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.market-badge.buying {
   background: linear-gradient(135deg, #059669, #047857);
   box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.market-item h4 {
   font-size: 1.2rem;
   font-weight: 700;
   color: #1f2937;
   margin-bottom: 0.75rem;
   margin-top: 0.5rem;
}

.market-price {
   font-size: 1.5rem;
   font-weight: 800;
   color: #dc2626;
   margin-bottom: 0.5rem;
}

.market-details {
   color: #6b7280;
   font-size: 0.9rem;
   font-weight: 500;
}

/* Footer */
.footer {
   background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
   color: white;
   padding: 3rem 0 1rem;
}

.footer-content {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
   gap: 2rem;
   margin-bottom: 2rem;
}

.footer-section h4 {
   font-size: 1.2rem;
   font-weight: 700;
   margin-bottom: 1rem;
   color: #fbbf24;
}

.footer-brand {
   display: flex;
   align-items: center;
   gap: 0.75rem;
   margin-bottom: 1rem;
   font-size: 1.5rem;
   font-weight: 700;
}

.footer-brand .q8-logo {
   font-size: 1.2rem;
   padding: 0.5rem 0.75rem;
}

.footer-section p {
   line-height: 1.6;
   color: #d1d5db;
   margin-bottom: 1.5rem;
}

.footer-section ul {
   list-style: none;
}

.footer-section ul li {
   margin-bottom: 0.5rem;
}

.footer-section ul li a {
   color: #d1d5db;
   text-decoration: none;
   transition: color 0.3s ease;
   font-weight: 500;
}

.footer-section ul li a:hover {
   color: #fbbf24;
}

.social-links {
   display: flex;
   gap: 1rem;
}

.social-links a {
   width: 40px;
   height: 40px;
   background: rgba(255,255,255,0.1);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   color: white;
   text-decoration: none;
   transition: all 0.3s ease;
}

.social-links a:hover {
   background: #fbbf24;
   transform: translateY(-3px);
}

.footer-bottom {
   text-align: center;
   padding-top: 2rem;
   border-top: 1px solid #374151;
   color: #9ca3af;
}

.footer-bottom p {
   margin-bottom: 0.5rem;
   font-weight: 500;
}

/* Modal Styles */
.modal {
   display: none;
   position: fixed;
   z-index: 1000;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0,0,0,0.6);
   backdrop-filter: blur(8px);
   animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
   from { opacity: 0; }
   to { opacity: 1; }
}

.modal-content {
   background-color: white;
   margin: 3% auto;
   padding: 2.5rem;
   border-radius: 16px;
   width: 90%;
   max-width: 900px;
   max-height: 85vh;
   overflow-y: auto;
   position: relative;
   animation: slideIn 0.3s ease;
   box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

@keyframes slideIn {
   from { 
       opacity: 0; 
       transform: translateY(-50px) scale(0.95); 
   }
   to { 
       opacity: 1; 
       transform: translateY(0) scale(1); 
   }
}

.auth-modal .modal-content {
   max-width: 450px;
   padding: 3rem;
}

.close {
   position: absolute;
   right: 1.5rem;
   top: 1.5rem;
   font-size: 2rem;
   cursor: pointer;
   color: #9ca3af;
   transition: all 0.3s ease;
   width: 40px;
   height: 40px;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 50%;
   background: #f3f4f6;
}

.close:hover {
   color: #dc2626;
   background: #fee2e2;
   transform: rotate(90deg);
}

/* Image Modal */
.image-modal .modal-content {
   background: transparent;
   border: none;
   padding: 0;
   max-width: 95%;
   max-height: 95%;
   display: flex;
   align-items: center;
   justify-content: center;
}

.image-content {
   position: relative;
}

.image-content img {
   max-width: 100%;
   max-height: 90vh;
   border-radius: 12px;
   box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

.image-content .close {
   position: absolute;
   top: -50px;
   right: 0;
   background: rgba(0,0,0,0.7);
   color: white;
}

/* Form Styles */
.form-group {
   margin-bottom: 1.5rem;
}

.form-group label {
   display: block;
   margin-bottom: 0.75rem;
   font-weight: 600;
   color: #374151;
   font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
   width: 100%;
   padding: 0.875rem 1rem;
   border: 2px solid #e5e7eb;
   border-radius: 8px;
   font-size: 1rem;
   transition: all 0.3s ease;
   background: white;
   font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
   outline: none;
   border-color: #dc2626;
   box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
   transform: translateY(-1px);
}

.form-group textarea {
   resize: vertical;
   min-height: 120px;
}

/* Loading Spinner */
.loading {
   text-align: center;
   padding: 3rem;
   color: #6b7280;
   font-weight: 600;
}

.loading-spinner {
   display: none;
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0,0,0,0.5);
   z-index: 9999;
   backdrop-filter: blur(4px);
}

.spinner {
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   width: 60px;
   height: 60px;
   border: 4px solid #f3f3f3;
   border-top: 4px solid #dc2626;
   border-radius: 50%;
   animation: spin 1s linear infinite;
}

@keyframes spin {
   0% { transform: translate(-50%, -50%) rotate(0deg); }
   100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Notification */
.notification {
   position: fixed;
   bottom: 2rem;
   right: 2rem;
   background: linear-gradient(135deg, #dc2626, #b91c1c);
   color: white;
   padding: 1rem 1.5rem;
   border-radius: 12px;
   box-shadow: 0 8px 30px rgba(220, 38, 38, 0.3);
   display: none;
   align-items: center;
   gap: 1rem;
   z-index: 1001;
   animation: slideInRight 0.3s ease;
   max-width: 400px;
   font-weight: 500;
}

@keyframes slideInRight {
   from { 
       transform: translateX(100%); 
       opacity: 0; 
   }
   to { 
       transform: translateX(0); 
       opacity: 1; 
   }
}

.notification button {
   background: none;
   border: none;
   color: white;
   font-size: 1.5rem;
   cursor: pointer;
   padding: 0;
   line-height: 1;
   opacity: 0.8;
   transition: opacity 0.3s ease;
}

.notification button:hover {
   opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
   .search-container {
       display: block;
   }
   
   .hero-stats {
       gap: 2rem;
   }
   
   .categories-grid {
       grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
   }
}

@media (max-width: 768px) {
   .header .container {
       flex-direction: column;
       gap: 1rem;
   }
   
   .nav {
       order: 3;
       width: 100%;
   }
   
   .nav ul {
       flex-direction: column;
       gap: 0.5rem;
       width: 100%;
   }
   
   .nav-link {
       text-align: center;
       width: 100%;
   }
   
   .header-right {
       order: 2;
       width: 100%;
       justify-content: space-between;
   }
   
   .search-container {
       flex: 1;
       margin-right: 1rem;
   }
   
   .search-input {
       width: 100%;
   }
   
   .auth-buttons {
       flex-shrink: 0;
   }
   
   .mobile-menu-btn {
       display: block;
   }
   
   .hero h2 {
       font-size: 2.5rem;
   }
   
   .hero p {
       font-size: 1.1rem;
   }
   
   .hero-stats {
       flex-direction: column;
       gap: 1rem;
       align-items: center;
   }
   
   .stat {
       width: 200px;
   }
   
   .actions-grid {
       grid-template-columns: 1fr;
   }
   
   .categories-grid {
       grid-template-columns: 1fr;
   }
   
   .recent-topics .section-header {
       flex-direction: column;
       gap: 1rem;
       text-align: center;
   }
   
   .topic-header {
       flex-direction: column;
       align-items: flex-start;
       gap: 0.5rem;
   }
   
   .topic-meta {
       flex-direction: column;
       gap: 0.5rem;
       align-items: flex-start;
   }
   
   .gallery-grid {
       grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
   }
   
   .market-grid {
       grid-template-columns: 1fr;
   }
   
   .footer-content {
       grid-template-columns: 1fr;
       text-align: center;
   }
   
   .social-links {
       justify-content: center;
   }
   
   .modal-content {
       margin: 1rem;
       width: calc(100% - 2rem);
       padding: 2rem;
   }
   
   .auth-modal .modal-content {
       padding: 2rem;
   }
   
   .notification {
       bottom: 1rem;
       right: 1rem;
       left: 1rem;
       max-width: none;
   }
}

@media (max-width: 480px) {
   .container {
       padding: 0 0.75rem;
   }
   
   .hero {
       padding: 6rem 0;
   }
   
   .hero h2 {
       font-size: 2rem;
   }
   
   .btn-large {
       padding: 1rem 2rem;
       font-size: 1rem;
   }
   
   .category-card,
   .topic-item {
       padding: 1.5rem;
   }
   
   .action-card {
       padding: 2rem 1.5rem;
   }
   
   .modal-content {
       padding: 1.5rem;
   }
}

/* Utility Classes */
.text-center {
   text-align: center;
}

.text-left {
   text-align: left;
}

.text-right {
   text-align: right;
}

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }

.hidden {
   display: none;
}

.visible {
   display: block;
}

/* Print Styles */
@media print {
   .header,
   .footer,
   .modal,
   .notification,
   .btn {
       display: none !important;
   }
   
   body {
       background: white !important;
       color: black !important;
   }
   
   .hero {
       background: white !important;
       color: black !important;
   }
}