/* Community Page Specific Styles */

/* Community Hero Section */
.community-hero {
    position: relative;
    background-image: url('https://swcommunity.s3.ap-south-1.amazonaws.com/hero-community.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 4rem;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

@media (min-width: 640px) {
    .hero-content-wrapper {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-content-wrapper {
        padding: 0 2rem;
    }
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

.hero-description {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 2rem;
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.5rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.btn {
    font-size: 1.125rem;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background-color: #000000;
    color: white;
}

.btn-primary:hover {
    background-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    border: 1px solid #000000;
    color: #000000;
    background-color: transparent;
}

.btn-secondary:hover {
    background-color: #000000;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Decorative elements */
.decoration {
    position: absolute;
    border-radius: 50%;
    blur: 20px;
    animation: pulse 2s infinite;
}

.decoration-1 {
    top: 2.5rem;
    left: 2.5rem;
    width: 5rem;
    height: 5rem;
    background-color: rgba(255, 255, 255, 0.2);
}

.decoration-2 {
    bottom: 2.5rem;
    right: 2.5rem;
    width: 8rem;
    height: 8rem;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Filter Section */
.filter-section {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 0;
}

.filter-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.filter-header {
    text-align: center;
    margin-bottom: 2rem;
}

.filter-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: hsl(0, 0%, 10%);
    margin-bottom: 0.5rem;
}

.filter-description {
    color: hsl(0, 0%, 40%);
    font-size: 1rem;
}

.search-container {
    max-width: 28rem;
    width: 100%;
    margin-bottom: 1.5rem;
}

.search-input-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(0, 0%, 40%);
    font-size: 1rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    font-size: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input:focus {
    border-color: hsl(225, 100%, 60%);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    background-color: white;
    color: hsl(0, 0%, 40%);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: hsl(225, 100%, 60%);
    color: hsl(225, 100%, 60%);
}

.filter-btn.active {
    background-color: hsl(225, 100%, 60%);
    color: white;
    border-color: hsl(225, 100%, 60%);
}

.filter-btn.hidden {
    display: none;
}

.show-more-container {
    display: flex;
    justify-content: center;
}

.show-more-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    color: hsl(225, 100%, 60%);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.show-more-btn:hover {
    color: hsl(225, 100%, 50%);
}

/* Events Section */
.events-section {
    background-color: #ffffff;
    min-height: 50vh;
    padding: 2rem 0;
}

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

@media (min-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.no-events {
    text-align: center;
    padding: 3rem 0;
}

.no-events p {
    color: hsl(0, 0%, 40%);
    font-size: 1.125rem;
}

/* Event Card Styles - New Design */
.event-card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: scaleIn 0.5s ease-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.event-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: #d1d5db;
}

.event-header-new {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.event-avatar-new {
    position: relative;
}

.avatar-img-new {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.status-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 0.75rem;
    height: 0.75rem;
    background-color: #10b981;
    border-radius: 50%;
    border: 2px solid white;
}

.category-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-tag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    background-color: #f3f4f6;
    color: #374151;
    border-radius: 9999px;
}

.online-tag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    background-color: #d1fae5;
    color: #065f46;
    border-radius: 9999px;
}

.event-content {
    flex: 1;
    margin-bottom: 1rem;
}

.event-title-new {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    color: #1f2937;
    line-height: 1.4;
    margin: 0 0 0.75rem 0;
}

.event-description-new {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.info-item i {
    width: 1rem;
    color: #9ca3af;
    text-align: center;
}

.event-footer-new {
    margin-top: auto;
}

.join-event-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #1f2937;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    text-decoration: none;
}

.join-event-btn:hover {
    background-color: #111827;
    transform: translateY(-1px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .filter-buttons {
        gap: 0.25rem;
    }
    
    .filter-btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .event-card {
        padding: 1rem;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid hsl(225, 100%, 60%);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus styles for accessibility */
.filter-btn:focus,
.search-input:focus,
.btn:focus,
.join-btn:focus,
.show-more-btn:focus {
    outline: 2px solid hsl(225, 100%, 60%);
    outline-offset: 2px;
}

/* Community Footer Styles */
.community-footer {
    background-color: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.skillwallet-logo {
    margin-bottom: 0.5rem;
}

.footer-subtitle {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d1d5db;
}

.contact-info i {
    color: #9ca3af;
}

.office-section {
    margin-bottom: 1.5rem;
}

.office-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    margin-bottom: 0.5rem;
}

.address {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.address i {
    color: #9ca3af;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.address-text {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* Print styles */
@media print {
    .community-hero,
    .filter-section {
        display: none;
    }
    
    .event-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    .community-footer {
        background-color: white !important;
        color: black !important;
    }
}