﻿/*
    File Location: Content/ResearchDev.css
    Research & Development Card Styling
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.rd-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

/* Header Section */
.rd-header {
    text-align: center;
    margin-bottom: 50px;
}

    .rd-header h2 {
        font-size: 2.5rem;
        font-weight: 700;
        background: linear-gradient(135deg, #1a5f7a, #2ecc71);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        margin-bottom: 10px;
    }

        .rd-header h2 i {
            background: none;
            -webkit-background-clip: unset;
            background-clip: unset;
            color: #2ecc71;
        }

    .rd-header p {
        color: #6c7a89;
        font-size: 1.1rem;
    }

/* Grid Layout */
.rd-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Card Base Styles */
.rd-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

    .rd-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

/* Card Image */
.rd-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

    .rd-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.rd-card:hover .rd-card-image img {
    transform: scale(1.05);
}

.rd-image-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffd966;
    letter-spacing: 1px;
}

/* Card Body */
.rd-card-body {
    padding: 22px;
}

.rd-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.blue-badge {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.green-badge {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

.purple-badge {
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
}

.orange-badge {
    background: rgba(230, 126, 34, 0.15);
    color: #e67e22;
}

.rd-card-body h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
}

.rd-card-body p {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Meta Information */
.rd-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-top: 10px;
    border-top: 1px solid #ecf0f1;
}

    .rd-meta span {
        font-size: 0.75rem;
        color: #95a5a6;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .rd-meta i {
        font-size: 0.7rem;
    }

/* Button */
.rd-btn {
    background: transparent;
    border: none;
    color: #2ecc71;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 0;
    transition: all 0.2s ease;
}

    .rd-btn:hover {
        gap: 12px;
        color: #27ae60;
    }

/* Modal Styles (for popup) */
.rd-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    padding: 30px;
    animation: slideUp 0.3s ease;
    z-index: 10001;
}

    .modal-content h3 {
        font-size: 1.6rem;
        color: #2c3e50;
        margin-bottom: 20px;
    }

    .modal-content .progress-bar {
        background: #ecf0f1;
        border-radius: 10px;
        height: 10px;
        margin: 20px 0;
        overflow: hidden;
    }

    .modal-content .progress-fill {
        background: #2ecc71;
        height: 100%;
        border-radius: 10px;
        width: 0%;
        transition: width 0.5s ease;
    }

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #95a5a6;
}

    .modal-close:hover {
        color: #e74c3c;
    }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .rd-container {
        padding: 20px 15px;
    }

    .rd-header h2 {
        font-size: 1.8rem;
    }

    .rd-cards-grid {
        gap: 20px;
    }

    .rd-card-body h3 {
        font-size: 1.2rem;
    }
}
