/* Credits Page - themed consistently with index.php */

/* ── Page Hero ── */
.page-hero {
    padding: 70px 72px 24px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #eef4ff 50%, #f8fafc 100%);
}
.page-hero-bg-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(66, 129, 200, 0.12) 0%, rgba(66, 129, 200, 0) 70%);
    border-radius: 50%;
    top: 50%;
    right: -80px;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}
.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 32px;
}
.page-hero-text {
    flex: 1;
    min-width: 0;
}
.page-hero-image {
    flex: 0 0 320px;
    position: relative;
    animation: floatHero 6s ease-in-out infinite;
}
@keyframes floatHero {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-16px); }
    100% { transform: translateY(0px); }
}
.page-hero-image img {
    width: 100%;
    display: block;
    transform: perspective(800px) rotateY(-15deg);
    transition: transform 0.3s ease;
}
.page-hero-image img:hover {
    transform: perspective(800px) rotateY(-5deg);
}
.page-hero-image-glow {
    position: absolute;
    width: 100%;
    max-width: 380px;
    height: 100%;
    max-height: 380px;
    background: radial-gradient(circle, rgba(66, 129, 200, 0.25) 0%, rgba(66, 129, 200, 0) 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}
.page-hero-image-shape {
    position: absolute;
    width: 90%;
    height: 90%;
    max-width: 320px;
    max-height: 320px;
    background: linear-gradient(135deg, rgba(66, 129, 200, 0.15) 0%, rgba(200, 220, 227, 0.4) 100%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: pulseShape 4s ease-in-out infinite;
}
@keyframes pulseShape {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
    100% { transform: translate(-50%, -50%) scale(1); }
}
.page-hero-image-dots {
    position: absolute;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(#4281c8 2px, transparent 2px);
    background-size: 18px 18px;
    z-index: -1;
    top: -10px;
    right: -10px;
    opacity: 0.3;
    animation: floatDots 10s linear infinite;
}
.page-hero-ornament-circle {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 4px solid rgba(66, 129, 200, 0.1);
    border-radius: 50%;
    bottom: 10%;
    left: 8%;
    z-index: 0;
    pointer-events: none;
    animation: pulseShape 5s ease-in-out infinite;
}
.page-hero-ornament-morph {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(200, 220, 227, 0.5);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 20%;
    right: 15%;
    z-index: 0;
    pointer-events: none;
    animation: morphShape 7s ease-in-out infinite;
}
@keyframes floatDots {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
@keyframes morphShape {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(0deg); }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; transform: rotate(180deg); }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(360deg); }
}
.page-hero-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 10px;
    color: #081427;
    font-family: 'Outfit', sans-serif;
}
.page-hero-title span {
    color: #4281c8;
    position: relative;
    display: inline-block;
}
.page-hero-title span::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(66, 129, 200, 0.15);
    z-index: -1;
    border-radius: 4px;
}
.page-hero-desc {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.6;
    max-width: 520px;
    margin-bottom: 0;
}

/* ── Main Content ── */
.credits-main {
    padding: 48px 48px 64px;
    background: #ffffff;
}

.credits-inner {
    max-width: 960px;
    margin: 0 auto;
}

/* ── Section Blocks ── */
.credits-block {
    background: #ffffff;
    border: 1px solid #c8dce3;
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.credits-block:hover {
    box-shadow: 0 8px 28px rgba(66, 129, 200, 0.08);
    border-color: rgba(66, 129, 200, 0.25);
}

.credits-block-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.credits-block-icon {
    width: 40px;
    height: 40px;
    background: rgba(66, 129, 200, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(66, 129, 200, 0.15);
}

.credits-block-icon svg {
    width: 20px;
    height: 20px;
    color: #4281c8;
}

.credits-block-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #081427;
    margin-bottom: 2px;
}

.credits-block-subtitle {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.5;
}

.credits-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 12px 0 16px;
}

/* ── Credits Table ── */
.credits-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.credits-table thead th {
    font-size: 11px;
    font-weight: 700;
    color: #6B7280;
    padding: 8px 12px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.credits-table tbody td {
    padding: 10px 12px;
    font-size: 14px;
    color: #2d3748;
    border-bottom: 1px solid #f0f4f8;
    vertical-align: middle;
}

.credits-table tbody tr:last-child td {
    border-bottom: none;
}

.credits-table tbody tr:hover {
    background: rgba(66, 129, 200, 0.03);
}

.credits-table a {
    color: #4281c8;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.credits-table a:hover {
    color: #1b3652;
}

.credits-table a svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.dev-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 20px 22px;
    background: linear-gradient(160deg, #f8fafc 0%, #eef4ff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.dev-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4281c8, #c8dce3);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px 20px 0 0;
}

.dev-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(66, 129, 200, 0.14);
    border-color: rgba(66, 129, 200, 0.3);
}

.dev-card:hover::before {
    opacity: 1;
}

/* Name & Role */
.dev-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.dev-card-name {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #081427;
    line-height: 1.3;
}

.dev-card-role {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #4281c8;
    background: rgba(66, 129, 200, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.2px;
}

.dev-card-role svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Social Buttons */
.dev-card-socials {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.dev-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    border: 1.5px solid transparent;
}

.dev-social-btn svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    transition: stroke 0.2s ease;
}

/* GitHub */
.dev-social-btn.dev-social-github {
    background: #f0f4f8;
    color: #4a5568;
    border-color: #e2e8f0;
}
.dev-social-btn.dev-social-github svg { stroke: #4a5568; }
.dev-social-btn.dev-social-github:hover {
    background: #24292e;
    border-color: #24292e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(36, 41, 46, 0.3);
}
.dev-social-btn.dev-social-github:hover svg { stroke: #fff; }

/* Email */
.dev-social-btn.dev-social-email {
    background: #f0f4f8;
    color: #4a5568;
    border-color: #e2e8f0;
}
.dev-social-btn.dev-social-email svg { stroke: #4a5568; }
.dev-social-btn.dev-social-email:hover {
    background: #4281c8;
    border-color: #4281c8;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 129, 200, 0.35);
}
.dev-social-btn.dev-social-email:hover svg { stroke: #fff; }

/* LinkedIn */
.dev-social-btn.dev-social-linkedin {
    background: #f0f4f8;
    color: #4a5568;
    border-color: #e2e8f0;
}
.dev-social-btn.dev-social-linkedin svg { stroke: #4a5568; }
.dev-social-btn.dev-social-linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.35);
}
.dev-social-btn.dev-social-linkedin:hover svg { stroke: #fff; }

/* Website */
.dev-social-btn.dev-social-web {
    background: #f0f4f8;
    color: #4a5568;
    border-color: #e2e8f0;
}
.dev-social-btn.dev-social-web svg { stroke: #4a5568; }
.dev-social-btn.dev-social-web:hover {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.dev-social-btn.dev-social-web:hover svg { stroke: #fff; }

/* ═══════════════════════════════════
   ── Template Contributors ──
═══════════════════════════════════ */

/* ── Contributors Simple Grid ── */
.contrib-simple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 16px;
}

.contrib-name {
    font-size: 14px;
    color: #2d3748;
    padding: 6px 8px;
    border-bottom: 1px solid #f0f4f8;
}

/* Empty State */
.contrib-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 20px;
    color: #9ca3af;
    text-align: center;
}

.contrib-empty svg {
    width: 40px;
    height: 40px;
    opacity: 0.5;
    stroke: #9ca3af;
}

.contrib-empty p {
    font-size: 14px;
    color: #9ca3af;
    margin: 0;
}

/* ── Contribute Section ── */
.credits-contribute-inner {
    display: flex;
    gap: 24px;
    align-items: center;
}

.credits-contribute-text {
    flex: 1;
    min-width: 0;
}

.credits-contribute-image {
    flex: 0 0 200px;
}

.credits-contribute-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

.credits-contribute p {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.7;
    margin-bottom: 16px;
    max-width: 600px;
}

.credits-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #4281c8;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 3px 12px rgba(66, 129, 200, 0.2);
}

.credits-cta-link:hover {
    background: #1b3652;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(66, 129, 200, 0.35);
}

.credits-cta-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .page-hero {
        padding: 70px 32px 24px;
    }
    .page-hero-inner {
        flex-direction: column;
        gap: 24px;
    }
    .page-hero-image {
        flex: none;
        width: 100%;
        max-width: 400px;
    }
    .page-hero-title {
        font-size: 28px;
    }
    .credits-main {
        padding: 60px 24px 80px;
    }
    .credits-block {
        padding: 24px 20px;
    }
    .dev-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 65px 16px 20px;
    }
    .page-hero-title {
        font-size: 20px;
    }
    .page-hero-desc {
        font-size: 13px;
    }
    .page-hero-image-dots {
        display: none;
    }
    .page-hero-ornament-circle,
    .page-hero-ornament-morph {
        display: none;
    }
    .credits-main {
        padding: 32px 16px 48px;
    }
    .credits-block {
        padding: 18px 16px;
        border-radius: 14px;
    }
    .credits-block-title {
        font-size: 17px;
    }
    .credits-block-icon {
        width: 36px;
        height: 36px;
    }
    .credits-block-icon svg {
        width: 18px;
        height: 18px;
    }

    /* Credits table → horizontal scroll on mobile */
    .credits-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    .credits-table thead th,
    .credits-table tbody td {
        white-space: nowrap;
    }

    /* Dev grid → 2 columns on tablet */
    .dev-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .contrib-simple-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .credits-contribute-inner {
        gap: 16px;
        align-items: center;
    }
    .credits-contribute-image {
        display: none;
    }
    .credits-contribute p {
        font-size: 12px;
        margin-bottom: 12px;
    }
    .credits-cta-link {
        padding: 8px 16px;
        font-size: 12px;
        gap: 6px;
    }
    .credits-cta-link svg {
        width: 14px;
        height: 14px;
    }
    .contrib-filters {
        max-height: 110px;
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    /* Dev grid → 1 column on mobile */
    .dev-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* Contributors grid → 1 column on mobile */
    .contrib-simple-grid {
        grid-template-columns: 1fr;
    }

    .dev-card {
        flex-direction: row;
        text-align: left;
        gap: 16px;
        padding: 18px 18px;
    }
    .dev-card-avatar-wrap {
        width: 64px;
        height: 64px;
        flex-shrink: 0;
    }
    .dev-card-avatar {
        width: 64px;
        height: 64px;
    }
    .dev-card-info {
        align-items: flex-start;
    }
    .dev-card-socials {
        justify-content: flex-start;
    }
}

/* ── Contributor Pagination ── */
.credits-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.credits-pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.credits-pagination-btn:hover {
    background: #e8f0fb;
    border-color: #4281c8;
    color: #4281c8;
}

.credits-pagination-btn.active {
    background: #4281c8 !important;
    color: #fff !important;
    border-color: #4281c8 !important;
    pointer-events: none;
}

.credits-pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}
