* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.logo img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
}

.logo h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 1.1rem;
    color: #666;
}

/* Main Content */
main {
    padding: 2rem 0;
}

section {
    background: white;
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

h2 i {
    margin-right: 0.5rem;
    color: #667eea;
}

/* Repo URL */
.repo-url {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin: 1.5rem 0;
}

.repo-url code {
    flex: 1;
    background: #f4f4f4;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    border: 2px solid #e0e0e0;
}

.repo-url button {
    background: #667eea;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.repo-url button:hover {
    background: #5a6fd8;
}

.instructions {
    color: #666;
    font-size: 0.9rem;
}

/* ===== TWEAK CARDS ===== */
.tweaks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.tweak-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tweak-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

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

.tweak-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.tweak-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 700;
}

.version {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.tweak-body {
    margin-bottom: 1.5rem;
}

.tweak-body p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tweak-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: #edf2f7;
    color: #4a5568;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tweak-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.package-id {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #718096;
    background: #f7fafc;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.tweak-stats {
    display: flex;
    gap: 1rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: #718096;
}

.stat i {
    color: #667eea;
}

/* Empty state quando non ci sono tweak */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #a0aec0;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #e2e8f0;
}

.empty-state p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #718096;
}

.subtext {
    font-size: 0.9rem;
    color: #a0aec0;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.about-card {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.about-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.about-card h3 i {
    margin-right: 0.5rem;
    color: #667eea;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #667eea;
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        flex-direction: column;
        text-align: center;
    }
    
    .repo-url {
        flex-direction: column;
    }
    
    .repo-url button {
        width: 100%;
    }
    
    section {
        padding: 1.5rem;
    }
    
    .tweaks-grid {
        grid-template-columns: 1fr;
    }
    
    .tweak-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tweak-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .tweak-stats {
        align-self: flex-end;
    }
}
