/* Resources Section Styles - Consistent with Site Design */

.resources {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
}

.resources .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.resources h2 {
    text-align: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.resources .section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Resources Content Container */
.resources-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Tab Navigation */
.resource-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.resource-tab {
    padding: 12px 24px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.resource-tab:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
}

.resource-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Tab Content */
.resource-tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.resource-tab-content.active {
    display: block;
}

/* Checklist Grid */
.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.checklist-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.checklist-item:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
}

.checklist-item h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.checklist-item ul {
    list-style: none;
    padding: 0;
}

.checklist-item li {
    padding: 0.5rem 0;
    padding-right: 25px;
    position: relative;
    color: #666;
}

.checklist-item li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: #4CAF50;
    font-weight: bold;
}

/* Template Grid */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.template-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.template-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
}

.template-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.template-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.template-card p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.template-meta {
    display: block;
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Code Samples */
.code-samples {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.code-sample {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.code-sample:hover {
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15);
}

.code-sample h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.code-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.feature-tag {
    background: #e7f3ff;
    color: #667eea;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Calculator Section */
.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.calculator-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
}

.calc-input-group {
    margin-bottom: 1.5rem;
}

.calc-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
    font-weight: 600;
}

.calc-input-group input[type="number"],
.calc-input-group select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.calc-input-group input[type="number"]:focus,
.calc-input-group select:focus {
    outline: none;
    border-color: #667eea;
}

.calc-result {
    margin-top: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    text-align: center;
    min-height: 60px;
}

/* Penalties Table */
.penalties-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.penalties-table th,
.penalties-table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #e0e0e0;
}

.penalties-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

.penalties-table tr:hover {
    background: #f8f9fa;
}

/* Buttons */
.btn-download,
.btn-primary,
.btn-secondary,
.btn-calculate {
    padding: 10px 24px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-download,
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-download:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.btn-calculate {
    background: #4CAF50;
    color: white;
    width: 100%;
}

.btn-calculate:hover {
    background: #45a049;
    transform: translateY(-2px);
}

/* Resources Footer */
.resources-footer {
    text-align: center;
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid #e0e0e0;
    color: #666;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .resources h2 {
        font-size: 2rem;
    }
    
    .resource-tabs {
        flex-direction: column;
    }
    
    .resource-tab {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .checklist-grid,
    .template-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-container {
        grid-template-columns: 1fr;
    }
    
    .penalties-table {
        font-size: 14px;
    }
    
    .penalties-table th,
    .penalties-table td {
        padding: 8px;
    }
}