/* ===================================
   CONTRIBUTORS PAGE - MAIN SITE STYLES
   =================================== */

/* Dark background applied to body */
body {
    background: radial-gradient(circle at 50% 50%, #1a1224 0%, #0d0a15 100%);
}

/* Page container with background grid overlay */
.contributors-page {
    max-width: 1200px;
    margin: 60px auto 40px;
    padding: 0 40px;
    position: relative;
    z-index: 5;
}

/* Static brand header */
.brand-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Grid background pattern (subtle overlay across entire page) */
.contributors-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, rgba(255, 140, 0, 0.03) 0px, transparent 1px, transparent 40px, rgba(255, 140, 0, 0.03) 41px),
        repeating-linear-gradient(90deg, rgba(255, 140, 0, 0.03) 0px, transparent 1px, transparent 40px, rgba(255, 140, 0, 0.03) 41px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

/* Page headers */
.page-header {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
    text-align: center;
}

.page-header h1, 
.page-header h2 {
    margin: 0 0 12px;
    font-weight: 700;
    font-size: 56px;
    color: #ffffff;
    line-height: 1.2;
}

.page-header h2 {
    font-size: 48px;
    margin-top: 60px;
}

.page-header .page-sub {
    margin: 0;
    color: #9ca3af;
    font-style: italic;
    font-size: 18px;
    line-height: 1.6;
}

/* Fade in up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contributors grid layout */
.contributors-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(4, 1fr);
    align-items: start;
    margin-bottom: 20px;
}

/* Partners grid - wider cards (3 columns) */
.partners-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Partners grid - wider cards (3 columns) */
.partners-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Contributor/Partner Cards */
.contrib-card {
    background: linear-gradient(145deg, #1a1224 0%, #0d0a15 100%);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-height: 323.04px;
    color: #e6e6e6;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease-out forwards;
}

#partn-card {
    min-height: 344.95px;
}

/* Stagger animation for cards */
.contrib-card:nth-child(1) { animation-delay: 0s; }
.contrib-card:nth-child(2) { animation-delay: 0.1s; }
.contrib-card:nth-child(3) { animation-delay: 0.2s; }
.contrib-card:nth-child(4) { animation-delay: 0.3s; }
.contrib-card:nth-child(5) { animation-delay: 0.4s; }
.contrib-card:nth-child(6) { animation-delay: 0.5s; }
.contrib-card:nth-child(7) { animation-delay: 0.6s; }
.contrib-card:nth-child(8) { animation-delay: 0.7s; }

/* Gradient border effect on hover */
.contrib-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FDB915, #FF8C00, #FF4D1F);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contrib-card:hover {
    transform: translateY(-12px);
    border-color: rgba(255, 140, 0, 0.5);
    box-shadow: 0 20px 40px rgba(255, 140, 0, 0.25);
}

.contrib-card:hover::before {
    opacity: 1;
}

/* Card top section */
.card-top {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Avatar styling */
.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 64px;
    background: linear-gradient(135deg, rgba(253, 185, 21, 0.15), rgba(255, 77, 31, 0.08));
    border: 2px solid rgba(255, 140, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contrib-card:hover .avatar {
    transform: scale(1.08);
    border-color: rgba(255, 140, 0, 0.6);
}

/* Meta info (name, username) */
.meta {
    flex: 1;
}

.meta .name {
    font-weight: 700;
    font-size: 1.15rem;
    color: #ffffff;
    margin: 0;
}

.meta .username {
    color: #9ca3af;
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 4px;
    display: block;
}

/* Divider lines */
.divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 140, 0, 0.15) 0%, rgba(255, 140, 0, 0.05) 50%, rgba(255, 140, 0, 0.15) 100%);
    margin: 16px 0;
}

/* Mid section - contributions list */
.card-mid {
    flex: 1 1 auto;
}

.contrib-list {
    margin: 0;
    padding-left: 20px;
    color: #d1d5db;
    list-style: disc;
}

.contrib-list li {
    margin: 8px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Bottom section - button */
.card-bot {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Contributor buttons */
.contrib-button {
    background: linear-gradient(135deg, #FDB915 0%, #FF4D1F 100%);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(253, 185, 21, 0.3);
    display: inline-block;
}

.contrib-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(253, 185, 21, 0.5);
}

.contrib-button:active {
    transform: translateY(0);
}

.contrib-button[disabled] {
    background: #555555;
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

/* Footer styling aligned with main site */
#footer {
    background: linear-gradient(180deg, #0d0a15 0%, #000000 100%);
    color: #fff;
    padding: 60px 0 0 0;
    border-top: 1px solid rgba(255, 140, 0, 0.2);
    margin-top: 80px;
    width: 100%;
    overflow-x: hidden;
}

/* Responsive design */
@media (max-width: 1024px) {
    .contributors-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .contributors-page {
        margin-top: 100px;
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .contributors-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contributors-page {
        margin-top: 40px;
        padding: 0 20px;
        max-width: 100%;
    }

    .brand-header {
        justify-content: center;
        margin-bottom: 30px;
    }

    .page-header h1, 
    .page-header h2 {
        font-size: 32px;
    }

    .page-header .page-sub {
        font-size: 14px;
    }

    .contrib-card {
        min-height: auto;
        padding: 20px;
    }

    #footer {
        margin-top: 60px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px 40px 20px;
    }
}
