/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --border-radius: 4px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f7fa;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    color: white;
}

.btn-secondary {
    background-color: var(--light-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #bdc3c7;
}

.btn-tertiary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.btn-tertiary:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Header */
header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

nav a.active,
nav a:hover {
    color: var(--secondary-color);
}

nav a.active:after,
nav a:hover:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    outline: none;
    width: 200px;
}

.search-box button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
}

.search-box button:hover {
    background-color: #2980b9;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Featured Plugins */
.featured-plugins {
    padding: 60px 0;
}

.featured-plugins h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--primary-color);
}

.plugin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.plugin-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
}

.plugin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.plugin-banner {
    height: 150px;
    overflow: hidden;
}

.plugin-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plugin-info {
    padding: 20px;
}

.plugin-info h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.badge.version {
    background-color: #e74c3c;
    color: white;
}

.badge.minecraft {
    background-color: #27ae60;
    color: white;
}

.badge.license {
    background-color: #f39c12;
    color: white;
}

.plugin-info .description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stats {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

/* Categories */
.categories {
    padding: 60px 0;
    background-color: white;
}

.categories h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--primary-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background-color: var(--light-color);
    padding: 25px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.category-card i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.category-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.category-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-section p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: #bdc3c7;
}

/* Plugin Page */
.plugin-page {
    padding: 40px 0;
}

.plugin-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.plugin-banner {
    flex: 0 0 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.plugin-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.plugin-meta {
    flex: 1;
}

.plugin-meta h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.author {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.plugin-meta .badges {
    margin-bottom: 20px;
}

.plugin-meta .badge {
    font-size: 0.8rem;
    padding: 5px 10px;
}

.plugin-meta .badge i {
    margin-right: 5px;
}

.plugin-meta .actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.plugin-content {
    display: flex;
    gap: 30px;
}

.plugin-main {
    flex: 1;
}

.plugin-sidebar {
    flex: 0 0 300px;
}

.plugin-section {
    background-color: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.plugin-section h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plugin-section h2 i {
    color: var(--secondary-color);
}

.plugin-section h3 {
    font-size: 1.2rem;
    margin: 20px 0 15px;
    color: var(--primary-color);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.feature-list li i {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--success-color);
}

.code-block {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 15px;
    margin: 15px 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.table-responsive {
    overflow-x: auto;
    margin: 15px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

table tr:hover {
    background-color: #f8f9fa;
}

.architecture-diagram {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: var(--border-radius);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 15px 0;
    overflow-x: auto;
}

/* Sidebar Widgets */
.sidebar-widget {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.download-info p {
    margin: 10px 0;
    font-size: 0.9rem;
}

.download-info p strong {
    color: var(--primary-color);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.stat-label {
    color: var(--text-light);
}

.stat-value {
    font-weight: 500;
}

.stat-value i {
    color: var(--warning-color);
}

.requirements ul {
    list-style: none;
}

.requirements li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.requirements li i {
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

.links ul {
    list-style: none;
}

.links li {
    margin-bottom: 10px;
}

.links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}

.links a:hover {
    color: var(--secondary-color);
}

.links a i {
    width: 20px;
    text-align: center;
}

.author-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.author-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.author-details p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.author-links {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.author-links a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.author-links a:hover {
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 992px) {
    .plugin-header {
        flex-direction: column;
    }
    
    .plugin-banner {
        flex: 0 0 auto;
    }
    
    .plugin-content {
        flex-direction: column;
    }
    
    .plugin-sidebar {
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .plugin-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}
