/* Clubs & Societies Page Specific Styles */

/* Import Montserrat Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* Main Title Section */
.main-title-section {
    padding: 120px 20px 60px 20px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.main-title-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="4"/></g></svg>') repeat;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.main-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Society Section */
.society-section {
    margin-bottom: 60px;
}

/* Clubs Container */
.clubs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* Club Card */
.club-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.club-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6B35, #2563EB, #059669);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.club-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.club-card:hover::before {
    opacity: 1;
}

.club-content {
    padding: 25px;
    position: relative;
}

.club-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.club-name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #14B8A6, #0891B2);
    transition: width 0.3s ease;
}

.club-card:hover .club-name {
    color: #14B8A6;
    transform: translateX(5px);
}

.club-card:hover .club-name::after {
    width: 100%;
}

.club-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.club-card:hover .club-description {
    color: #2d3748;
}

/* Instagram Link */
.instagram-link {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: #6b7280;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.instagram-link:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 15px rgba(188, 24, 136, 0.3);
}

.instagram-link:active {
    transform: scale(0.95);
}

/* Cultural Society Accent */
.cultural-society .club-card:hover::before {
    background: linear-gradient(90deg, #FF6B35, #FF8E53, #FFB347);
}

.cultural-society .club-card:hover .club-name {
    color: #FF6B35;
}

.cultural-society .club-name::after {
    background: linear-gradient(90deg, #FF6B35, #FF8E53);
}

/* Technical Society Accent */
.technical-society .club-card:hover::before {
    background: linear-gradient(90deg, #2563EB, #3B82F6, #60A5FA);
}

.technical-society .club-card:hover .club-name {
    color: #2563EB;
}

.technical-society .club-name::after {
    background: linear-gradient(90deg, #2563EB, #3B82F6);
}

/* Other Clubs Accent */
.other-clubs .club-card:hover::before {
    background: linear-gradient(90deg, #059669, #10B981, #34D399);
}

.other-clubs .club-card:hover .club-name {
    color: #059669;
}

.other-clubs .club-name::after {
    background: linear-gradient(90deg, #059669, #10B981);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .clubs-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
        padding: 50px 15px;
    }
    
    .main-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .main-title-section {
        padding: 100px 15px 50px 15px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .main-subtitle {
        font-size: 1.1rem;
    }
    
    .clubs-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 40px 10px;
    }
    
    /* Apply permanent hover effects for club cards on mobile */
    .club-card {
        transform: translateY(-5px) scale(1.01);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    }
    
    .club-card::before {
        opacity: 1;
    }
    
    .club-card::after {
        left: 100%;
    }
    
    .club-content {
        padding: 20px;
    }
    
    .club-name {
        font-size: 1.2rem;
        transform: translateX(5px);
    }
    
    .club-name::after {
        width: 100%;
    }
    
    .club-description {
        font-size: 0.9rem;
        color: #2d3748;
    }
    
    /* Apply permanent hover effect for Instagram links on mobile */
    .instagram-link {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
        background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
        color: white;
        transform: scale(1.05) rotate(2deg);
        box-shadow: 0 4px 15px rgba(188, 24, 136, 0.3);
    }
    
    /* Society-specific mobile color adjustments */
    .cultural-society .club-name {
        color: #FF6B35;
    }
    
    .technical-society .club-name {
        color: #2563EB;
    }
    
    .other-clubs .club-name {
        color: #059669;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .clubs-container {
        padding: 30px 5px;
    }
    
    .club-content {
        padding: 15px;
    }
    
    .club-name {
        font-size: 1.1rem;
    }
    
    .club-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

/* Smooth scrolling for better UX */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.club-card:focus-within {
    outline: 2px solid #14B8A6;
    outline-offset: 2px;
}

.instagram-link:focus {
    outline: 2px solid #bc1888;
    outline-offset: 2px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Additional Premium Effects */
.club-card {
    overflow: hidden;
    position: relative;
}

.club-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s;
}

.club-card:hover::after {
    left: 100%;
}

/* Text selection styling */
::selection {
    background: #14B8A6;
    color: white;
}

::-moz-selection {
    background: #14B8A6;
    color: white;
}

/* Non Active Clubs Section */
.non-active-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.05);
}

.non-active-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.non-active-clubs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.non-active-club {
    background: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
}

.non-active-club:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.non-active-club-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    margin: 0 0 0.25rem 0;
}

.society-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    display: block;
}

/* Responsive adjustments for non-active clubs */
@media (max-width: 768px) {
    .non-active-section {
        margin-top: 1.5rem;
        padding: 1rem;
    }
    
    .non-active-clubs {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.5rem;
    }
    
    .non-active-club {
        padding: 0.5rem 0.75rem;
    }
    
    .non-active-club-name {
        font-size: 0.8rem;
    }
    
    .society-label {
        font-size: 0.65rem;
    }
}

/* Premium Society Headings */
.premium-heading-container {
    text-align: center;
    padding: 4rem 2rem 3rem 2rem;
    position: relative;
}

.premium-society-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #1a202c;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #d4af37 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-society-title::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.premium-society-title::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.premium-society-title:hover {
    transform: translateY(-2px);
    text-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.premium-society-title:hover::before {
    width: 100%;
}

.premium-society-title:hover::after {
    opacity: 1;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Responsive adjustments for premium headings */
@media (max-width: 768px) {
    .premium-heading-container {
        padding: 3rem 1rem 2rem 1rem;
    }
    
    .premium-society-title {
        font-size: clamp(2rem, 6vw, 3rem);
        letter-spacing: 0.05em;
    }
}

@media (max-width: 480px) {
    .premium-heading-container {
        padding: 2.5rem 1rem 1.5rem 1rem;
    }
    
    .premium-society-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        letter-spacing: 0.02em;
    }
}
