/* 
 * Risorse Page Styles
 * Digital Nomad Villages
 */

/* Hero Section with Background Image */
.resources-hero {
    position: relative;
    background-image: url('../public/images/collescipoli/collescipoli_wifi_hor.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 12rem 0 3.9rem; 
    text-align: center;
}

.resources-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.5) 0%, rgba(52, 73, 94, 0.5) 100%); /* More transparent */
    z-index: 1;
}

.resources-hero .container {
    position: relative;
    z-index: 2;
}

.resources-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.resources-hero p {
    font-size: 1.2rem;
    color: #ecf0f1;
    max-width: 800px;
    margin: 0 auto;
}

/* Resource Cards */
.resource-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.resource-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 2rem;
}

.resource-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    color: white;
    text-align: center;
}

.resource-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
    flex-wrap: wrap;
    justify-content: center;
}

.resource-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Resource Content */
.resource-content {
    padding: 2rem;
}

.resource-abstract {
    line-height: 1.8;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.resource-abstract h3 {
    color: #2c3e50;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.resource-abstract ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.resource-abstract li {
    margin-bottom: 0.5rem;
}

/* Highlight Boxes */
.highlight-box {
    background: #e8f4f8;
    border-left: 4px solid #3498db;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.highlight-box h4 {
    margin-top: 0;
    color: #2c3e50;
}

/* Table of Contents Preview */
.toc-preview {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.toc-preview h4 {
    margin-top: 0;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.toc-preview ul {
    list-style: none;
    padding: 0;
}

.toc-preview li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
    color: #5c6b61;
}

.toc-preview li:last-child {
    border-bottom: none;
}

/* Locked Content Section */
.locked-content {
    position: relative;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 50%, rgba(255,255,255,1) 100%);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    margin-top: 2rem;
}

.locked-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

/* Membership CTA */
.membership-cta {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 2rem;
}

.membership-cta h3 {
    color: white;
    margin-top: 0;
}

.membership-cta p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #ecf0f1;
}

.membership-cta ul {
    color: #ecf0f1;
}

.membership-cta ul li {
    color: #ecf0f1;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #2980b9;
}

/* Sources and Disclaimer */
.sources {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.disclaimer {
    background: #fff3cd;
    border-left: 4px solid #f39c12;
    padding: 1rem;
    border-radius: 8px;
    margin: 2rem 0;
    font-size: 0.9rem;
    color: #856404;
}

/* Responsive Design */
@media (max-width: 768px) {
    .resources-hero {
        padding: 3rem 0 2.5rem; /* Adjusted for mobile */
    }

    .resources-hero h1 {
        font-size: 2rem;
    }
    
    .resource-header h2 {
        font-size: 1.5rem;
    }
}

