/* Featured Portals Section */
.featured-portals {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
    width: 100%;
}

.featured-portal-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.portal-selector {
    width: 100%;
    padding: 10px 14px;
    padding-left: 40px;
    border: 2px solid #ffd9e2;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background-color: white;
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 24px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.portal-selector::after {
    content: '▼';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #999;
    font-size: 12px;
}

.portal-selector:hover {
    border-color: var(--primary-color);
}

.portal-selector:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(232, 139, 160, 0.1);
}

.featured-portal-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.featured-portal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(232, 139, 160, 0.2);
    background: linear-gradient(135deg, rgba(255, 217, 226, 0.3), rgba(255, 237, 242, 0.3));
}

.featured-portal-card.empty {
    background: #f9f9f9;
    border: 2px dashed #ddd;
    cursor: default;
}

.featured-portal-card.empty:hover {
    transform: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    background: #f9f9f9;
}

.featured-portal-card .portal-image {
    width: 40px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 8px;
}

.featured-portal-card .portal-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.featured-portal-card .portal-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-portal-card .portal-type-badge.external {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.featured-portal-card .portal-type-badge.internal {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.featured-portal-card .empty-message {
    color: #999;
    font-size: 14px;
    font-style: italic;
}

.featured-portal-card::after {
    content: '→';
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 24px;
    color: var(--primary-color);
    opacity: 0;
    transition: all 0.3s ease;
}

.featured-portal-card:not(.empty):hover::after {
    opacity: 1;
    right: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .featured-portals {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 25px;
    }
    
    .featured-portal-card {
        min-height: 100px;
        padding: 20px;
    }
    
    .featured-portal-card .portal-image {
        width: 50px;
        height: 65px;
    }
    
    .featured-portal-card .portal-name {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .featured-portals {
        margin-top: 20px;
        gap: 15px;
    }

    .portal-selector {
        font-size: 14px;
        padding: 10px 14px;
        padding-left: 40px;
        width: 100%;
        -webkit-tap-highlight-color: rgba(232, 139, 160, 0.3);
    }
    
    .featured-portal-card {
        padding: 15px;
        min-height: 90px;
        -webkit-tap-highlight-color: rgba(232, 139, 160, 0.3);
        touch-action: manipulation;
    }

    .featured-portal-card .portal-image {
        width: 45px;
        height: 55px;
    }

    .featured-portal-card .portal-name {
        font-size: 14px;
    }

    .featured-portal-card .portal-type-badge {
        font-size: 8px;
        padding: 2px 8px;
    }
}
