/*
 * Main Stylesheet for Refat's Plugin Repository
 * Font: Inter
 */

:root {
    --primary-color: #0052cc;
    --primary-hover: #0065ff;
    --text-dark: #172b4d;
    --text-light: #5e6c84;
    --background-color: #f4f5f7;
    --card-background: #ffffff;
    --border-color: #dfe1e6;
    --box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Header & Footer --- */
.site-header, .site-footer {
    background-color: var(--card-background);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.site-footer {
    border-bottom: none;
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9em;
    color: var(--text-light);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* --- Main Content --- */
.site-main {
    padding: 3rem 0;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 0;
    margin-bottom: 2rem;
}

/* --- Plugin Grid --- */
.plugin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.plugin-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.plugin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}

.plugin-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.plugin-icon {
    width: 48px;
    height: 48px;
    margin-right: 1rem;
    border-radius: 5px;
	object-fit: cover;
}

.plugin-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

.plugin-card-meta {
    font-size: 0.9em;
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.plugin-version {
    font-weight: 500;
    background-color: #e9f2ff;
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8em;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: var(--primary-hover);
}

.alert {
    padding: 1rem;
    border-radius: 5px;
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}