/* Resources Page - Mobile First Responsive Design */

/* Hero Section */
.resources-hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    padding: 120px 20px 60px;
    text-align: center;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resources-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.resources-hero i {
    margin-right: 10px;
}

.hero-subtitle {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 300;
    line-height: 1.6;
}

/* Main Content */
.resources-main {
    padding: 40px 20px;
    background: #f5f5f5;
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

/* Resource Card & Package Card (same styling) */
.resource-card,
.package-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.resource-card:hover,
.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.resource-card.coming-soon,
.package-card.coming-soon {
    opacity: 0.85;
    border: 2px dashed var(--primary);
}

/* Resource Header & Package Header */
.resource-header,
.package-header {
    background: linear-gradient(135deg, rgba(0, 102, 179, 0.05), rgba(33, 150, 243, 0.05));
    padding: 25px 20px;
    border-bottom: 3px solid var(--primary);
}

.resource-title,
.package-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.resource-title i,
.package-title i {
    color: var(--primary);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.resource-title h3,
.package-title h3 {
    font-size: 1.3rem;
    color: #333;
    font-weight: 700;
    line-height: 1.4;
    flex: 1;
}

.resource-badges,
.package-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-category {
    background: var(--primary);
    color: #ffffff;
}

.badge-status {
    background: #28a745;
    color: #ffffff;
}

/* Resource Description & Package Description */
.resource-description,
.package-description {
    padding: 25px 20px;
    flex: 1;
}

.resource-description p,
.package-description p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.resource-excerpt .excerpt-text,
.resource-excerpt .full-text,
.package-excerpt .excerpt-text,
.package-excerpt .full-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
}

.read-more-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.read-more-btn:hover {
    background: var(--primary);
    color: #ffffff;
}

/* Resource Actions & Package Actions */
.resource-actions,
.package-actions {
    padding: 0 20px 25px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-align: center;
}

.view-btn {
    background: var(--primary);
    color: #ffffff;
}

.view-btn:hover {
    background: #004d8a;
    transform: translateY(-2px);
}

.contact-btn {
    background: #ffffff;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.contact-btn:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Package-specific buttons */
.pypi-btn {
    background: #3775A9;
    color: #ffffff;
}

.pypi-btn:hover {
    background: #2a5a85;
    transform: translateY(-2px);
}

.github-btn {
    background: #24292e;
    color: #ffffff;
}

.github-btn:hover {
    background: #000000;
    transform: translateY(-2px);
}

.docs-btn {
    background: #28a745;
    color: #ffffff;
}

.docs-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background: #ffffff;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.site-footer p {
    color: #333;
    font-size: 0.9rem;
}

/* Tablet - 600px+ */
@media (min-width: 600px) {
    .resources-hero {
        padding: 150px 40px 80px;
        min-height: 300px;
    }

    .resources-hero h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .resources-main {
        padding: 50px 30px;
    }

    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .resource-header,
    .package-header {
        padding: 30px 25px;
    }

    .resource-title h3,
    .package-title h3 {
        font-size: 1.4rem;
    }

    .resource-description,
    .package-description {
        padding: 30px 25px;
    }

    .resource-actions,
    .package-actions {
        padding: 0 25px 30px 25px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .action-btn {
        flex: 1;
        min-width: 140px;
    }
}

/* Desktop Small - 768px+ */
@media (min-width: 768px) {
    .resources-hero {
        padding: 180px 60px 100px;
        min-height: 350px;
    }

    .resources-hero h1 {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .resources-main {
        padding: 60px 40px;
    }

    .resource-header,
    .package-header {
        padding: 35px 30px;
    }

    .resource-title i,
    .package-title i {
        font-size: 1.8rem;
    }

    .resource-title h3,
    .package-title h3 {
        font-size: 1.5rem;
    }

    .resource-description,
    .package-description {
        padding: 35px 30px;
    }

    .resource-actions,
    .package-actions {
        padding: 0 30px 35px 30px;
    }
}

/* Desktop Medium - 1024px+ */
@media (min-width: 1024px) {
    .resources-hero {
        padding: 200px 80px 120px;
        min-height: 400px;
    }

    .resources-hero h1 {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .resources-main {
        padding: 70px 50px;
    }

    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }

    .resource-header,
    .package-header {
        padding: 40px 35px;
    }

    .resource-title i,
    .package-title i {
        font-size: 2rem;
    }

    .resource-title h3,
    .package-title h3 {
        font-size: 1.6rem;
    }

    .resource-description,
    .package-description {
        padding: 40px 35px;
    }

    .resource-description p,
    .resource-excerpt .excerpt-text,
    .resource-excerpt .full-text,
    .package-description p,
    .package-excerpt .excerpt-text,
    .package-excerpt .full-text {
        font-size: 1rem;
    }

    .resource-actions,
    .package-actions {
        padding: 0 35px 40px 35px;
    }
}

/* Desktop Large - 1440px+ */
@media (min-width: 1440px) {
    .resources-hero {
        padding: 220px 100px 140px;
        min-height: 450px;
    }

    .resources-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .resource-header,
    .package-header {
        padding: 45px 40px;
    }

    .resource-title h3,
    .package-title h3 {
        font-size: 1.5rem;
    }

    .resource-description,
    .package-description {
        padding: 45px 40px;
    }

    .resource-actions,
    .package-actions {
        padding: 0 40px 45px 40px;
    }
}
