/* ============================================
   RFCNF PAGE - CUSTOM STYLES
   SVXLink Dashboard by SP2ONG
   ============================================ */

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { 
        opacity: 0; 
        transform: translateY(-30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Container */
.rfcnf-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
    animation: fadeIn 0.5s ease-in;
}

/* Header */
.rfcnf-header {
    background: linear-gradient(135deg, #1d2658 0%, #3f4c84 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.6s ease-out;
}

.rfcnf-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #00aee8;
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rfcnf-title .material-icons {
    font-size: 36px;
    color: #08dc6e;
}

.rfcnf-subtitle {
    color: #f3ead3;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    opacity: 0.9;
}

/* Radio Modules Grid */
.radio-modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    animation: slideUp 0.7s ease-out;
}

/* Radio Card */
.radio-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #1d2658 0%, #2a3668 100%);
    padding: 30px 20px;
    border-radius: 12px;
    border: 2px solid rgba(0, 174, 232, 0.2);
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.radio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 174, 232, 0.1), transparent);
    transition: left 0.5s ease;
}

.radio-card:hover::before {
    left: 100%;
}

.radio-card:hover {
    border-color: #00aee8;
    box-shadow: 0 8px 25px rgba(0, 174, 232, 0.5);
    transform: translateY(-8px);
}

.radio-card:hover .radio-icon {
    animation: pulse 0.6s ease-in-out;
    box-shadow: 0 8px 25px rgba(0, 174, 232, 0.6);
}

.radio-card:hover .radio-arrow {
    opacity: 1;
    transform: translateY(0);
}

/* Radio Icon */
.radio-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00aee8 0%, #0088bb 100%);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 174, 232, 0.4);
    transition: all 0.3s ease;
}

.radio-icon .material-icons {
    font-size: 40px;
    color: white;
}

/* Radio Info */
.radio-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-name {
    color: #08dc6e;
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.radio-desc {
    color: #f3ead3;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.85;
}

/* Radio Arrow */
.radio-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 174, 232, 0.2);
    border-radius: 50%;
    opacity: 0.6;
    transition: all 0.3s ease;
    transform: translateY(5px);
}

.radio-arrow .material-icons {
    font-size: 24px;
    color: #00aee8;
}

/* Info Section */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: slideUp 0.8s ease-out;
}

/* Info Box */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-radius: 8px;
    background: rgba(33, 150, 243, 0.15);
    border-left: 4px solid #2196f3;
}

.info-box .material-icons {
    font-size: 28px;
    color: #2196f3;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box p {
    color: #f3ead3;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.info-box strong {
    color: #08dc6e;
    font-weight: 600;
}

/* Access Denied */
.access-denied {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

.access-denied img {
    max-width: 400px;
    opacity: 0.8;
    margin-bottom: 20px;
    animation: slideDown 0.6s ease-out;
}

.access-denied-text {
    color: #f3ead3;
    font-size: 18px;
    font-family: 'Roboto', sans-serif;
    margin-top: 20px;
}

/* Staggered Animation for Cards */
.radio-card:nth-child(1) { animation: slideUp 0.5s ease-out 0.1s both; }
.radio-card:nth-child(2) { animation: slideUp 0.5s ease-out 0.15s both; }
.radio-card:nth-child(3) { animation: slideUp 0.5s ease-out 0.2s both; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media screen and (max-width: 768px) {
    .rfcnf-container {
        padding: 15px;
        margin: 20px auto;
    }

    .rfcnf-header {
        padding: 25px 20px;
    }

    .rfcnf-title {
        font-size: 24px;
        flex-direction: column;
        gap: 10px;
    }

    .rfcnf-title .material-icons {
        font-size: 32px;
    }

    .rfcnf-subtitle {
        font-size: 14px;
    }

    /* 2 columns on tablet */
    .radio-modules-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .radio-card {
        padding: 25px 15px;
    }

    .radio-icon {
        width: 70px;
        height: 70px;
    }

    .radio-icon .material-icons {
        font-size: 36px;
    }

    .radio-name {
        font-size: 20px;
    }

    .radio-desc {
        font-size: 13px;
    }
}

/* Mobile */
@media screen and (max-width: 480px) {
    .rfcnf-container {
        padding: 10px;
        margin: 15px auto;
    }

    .rfcnf-header {
        padding: 20px 15px;
        border-radius: 8px;
    }

    .rfcnf-title {
        font-size: 20px;
    }

    .rfcnf-title .material-icons {
        font-size: 28px;
    }

    .rfcnf-subtitle {
        font-size: 13px;
    }

    /* Single column on mobile */
    .radio-modules-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .radio-card {
        padding: 25px 20px;
    }

    .radio-icon {
        width: 70px;
        height: 70px;
    }

    .radio-icon .material-icons {
        font-size: 36px;
    }

    .radio-name {
        font-size: 20px;
    }

    .radio-desc {
        font-size: 13px;
    }

    .radio-arrow {
        width: 35px;
        height: 35px;
    }

    .radio-arrow .material-icons {
        font-size: 22px;
    }

    .info-section {
        gap: 12px;
    }

    .info-box {
        padding: 15px;
        gap: 12px;
    }

    .info-box .material-icons {
        font-size: 24px;
    }

    .info-box p {
        font-size: 13px;
    }

    .access-denied img {
        max-width: 250px;
    }

    .access-denied-text {
        font-size: 16px;
    }
}