/* ==========================================================
   SkillSwap Market - Stylesheet
   ========================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f2430;
    background: #f6f7fb;
    line-height: 1.55;
}

a {
    color: #4451e0;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.narrow {
    max-width: 560px;
}

/* Header */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e4e6ef;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #1f2430;
}

.site-header nav a {
    margin-left: 18px;
    color: #444a5c;
    font-weight: 500;
}

/* Hero */
.hero {
    text-align: center;
    padding: 64px 20px;
    background: linear-gradient(135deg, #4451e0, #7b5eea);
    color: #ffffff;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: 34px;
}

.hero p {
    max-width: 560px;
    margin: 0 auto 28px;
    font-size: 17px;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
    opacity: 0.92;
}

.btn-primary {
    background: #ffffff;
    color: #4451e0;
}

.hero .btn-primary {
    background: #ffffff;
    color: #4451e0;
}

section .btn-primary,
form .btn-primary {
    background: #4451e0;
    color: #ffffff;
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.6);
}

.btn-small {
    padding: 7px 14px;
    font-size: 13px;
    background: #4451e0;
    color: #ffffff;
}

/* Sections */
section.container {
    padding: 40px 20px;
}

h1 {
    margin-top: 0;
}

/* Grid of skill cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: #ffffff;
    border: 1px solid #e4e6ef;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    flex-direction: column;
}

.card h3 {
    margin: 0 0 4px;
}

.card .price {
    font-weight: 700;
    font-size: 18px;
    margin: 10px 0;
}

.muted {
    color: #767c8f;
    font-size: 14px;
}

/* Forms */
.form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 16px;
}

.form label {
    font-weight: 600;
    margin-top: 10px;
    font-size: 14px;
}

.form input,
.form textarea {
    padding: 10px 12px;
    border: 1px solid #d3d6e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}

.form button {
    margin-top: 20px;
}

.search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.search-form input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d3d6e0;
    border-radius: 8px;
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin: 14px 0;
}

.alert-error {
    background: #fdeceb;
    color: #b32b1f;
    border: 1px solid #f5c6c1;
}

.alert-success {
    background: #e9f9ee;
    color: #1a7a3d;
    border: 1px solid #b9ecc7;
    text-align: center;
}

.alert-info {
    background: #eaf1ff;
    color: #294c9e;
    border: 1px solid #c4d6fb;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 30px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e4e6ef;
    font-size: 14px;
}

.table th {
    background: #f0f1f8;
    font-weight: 600;
}

/* Status badges */
.status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-pending {
    background: #fff4dd;
    color: #966300;
}

.status-completed {
    background: #e2f7e6;
    color: #1a7a3d;
}

.status-cancelled {
    background: #fbe4e4;
    color: #b32b1f;
}

/* Profile / order boxes */
.profile-box,
.order-summary,
.skill-detail-box {
    background: #ffffff;
    border: 1px solid #e4e6ef;
    border-radius: 10px;
    padding: 20px;
    margin: 16px 0 30px;
}

.price-large {
    font-size: 26px;
    font-weight: 700;
}

/* Language toggle */
.lang-switch {
    display: flex;
    gap: 6px;
    margin-left: 18px;
    font-size: 13px;
}

.lang-switch a {
    padding: 3px 8px;
    border-radius: 6px;
    color: #767c8f;
    font-weight: 600;
}

.lang-switch a.active {
    background: #eef0fb;
    color: #4451e0;
}

/* Footer */
.site-footer {
    padding: 24px 20px;
    text-align: center;
    color: #767c8f;
    font-size: 13px;
    border-top: 1px solid #e4e6ef;
    margin-top: 40px;
}
