/* ==========================================
   RESOURCES PAGE STYLES
   ========================================== */

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.resource-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-top: 4px solid var(--light-blue);
    text-align: center;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.resource-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
}

.resource-icon.urgent {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.resource-icon.maintenance {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.resource-icon.winter {
    background: linear-gradient(135deg, #5dade2, #3498db);
}

.resource-icon.safety {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.resource-icon.info {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.resource-icon.savings {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.resource-card h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 700;
}

.resource-desc {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 60px;
}

.resource-details {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.resource-details span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.resource-details i {
    color: var(--light-blue);
}

.btn-download {
    width: 100%;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-download:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

.btn-download i {
    margin-right: 8px;
}

/* Useful Links Section */
.useful-links {
    margin: 60px 0 50px;
}

.useful-links h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 35px;
    font-weight: 700;
}

.useful-links h2 i {
    color: var(--light-blue);
    margin-right: 12px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.link-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--light-blue);
    display: flex;
    flex-direction: column;
    position: relative;
}

.link-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.link-card.highlight {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    border-left-color: var(--warning-orange);
}

.link-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--light-blue);
}

.link-card.highlight .link-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.link-card h3 {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 700;
}

.link-card.highlight h3 {
    color: white;
}

.link-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
}

.link-card.highlight p {
    color: rgba(255, 255, 255, 0.95);
}

.link-arrow {
    color: var(--light-blue);
    font-size: 1.2rem;
    margin-top: 15px;
}

.link-card.highlight .link-arrow {
    color: white;
}

/* Emergency Numbers Section */
.emergency-numbers {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-top: 50px;
}

.emergency-numbers h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 35px;
    font-weight: 700;
}

.emergency-numbers h2 i {
    color: var(--urgent-red);
    margin-right: 12px;
    animation: pulse 2s infinite;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.number-card {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    border: 3px solid;
}

.number-card.urgent {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-color: #c0392b;
    color: white;
}

.number-card.safety {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    border-color: #229954;
    color: white;
}

.number-card.info {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-color: #2980b9;
    color: white;
}

.number-card i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.number-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.emergency-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 15px 0;
    color: white;
    text-decoration: none;
    letter-spacing: 2px;
}

.emergency-number:hover {
    text-decoration: underline;
}

.number-card p {
    font-size: 0.95rem;
    opacity: 0.95;
}

/* Download Message */
.download-message {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--success-green);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.download-message.show {
    transform: translateX(0);
}

.download-message i {
    font-size: 1.5rem;
}

.download-message span {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .numbers-grid {
        grid-template-columns: 1fr;
    }

    .emergency-numbers {
        padding: 30px 20px;
    }

    .download-message {
        right: 10px;
        left: 10px;
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .resource-card {
        padding: 25px 20px;
    }

    .resource-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .resource-card h3 {
        font-size: 1.2rem;
    }

    .useful-links h2,
    .emergency-numbers h2 {
        font-size: 1.5rem;
    }

    .emergency-number {
        font-size: 1.8rem;
    }
}