/* ======================================
   WATCHVAULT LUXURY DARK THEME
====================================== */

/* ======================================
   GLOBAL
====================================== */

* {
    box-sizing: border-box;
}

body {
    background: radial-gradient(
        circle at top,
        #20242a 0%,
        #111315 50%,
        #08090a 100%
    );
    color: #f5f5f5;
    font-family: "Segoe UI", Arial, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

main {
    margin-top: 25px;
}

h1 {
    margin: 0;
    color: #d4af37;
    font-size: 2rem;
    letter-spacing: 2px;
}

h2 {
    color: #d4af37;
    margin-bottom: 20px;
}

p {
    line-height: 1.5;
}

a {
    color: #d4af37;
    text-decoration: none;
}

a:hover {
    color: #f4d675;
}

/* ======================================
   HEADER
====================================== */

header {
    background: linear-gradient(
        180deg,
        #20242a 0%,
        #17191d 100%
    );
    border: 1px solid #2b2e33;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
}

nav {
    margin-top: 15px;
}

header nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

nav a {
    color: #e6e6e6;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 6px;
    transition: 0.25s ease;
    display: inline-block;
}

nav a:hover {
    background: #d4af37;
    color: #111315;
}

/* ======================================
   SITE BRANDING
====================================== */

.site-header {
    width: 100%;
    text-align: center;
    margin-bottom: 25px;
}

.site-header h1 {
    margin: 0;
    color: #d4af37;
    font-size: 2.8rem;
    letter-spacing: 4px;
}

.site-subtitle {
    color: #999;
    margin-top: 10px;
    margin-bottom: 0;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* ======================================
   SUMMARY
====================================== */

.summary {
    background: #1b1d20;
    border: 1px solid #2b2e33;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.3);
}

.summary h2 {
    margin-top: 0;
    color: #d4af37;
}

/* ======================================
   DASHBOARD METRICS
====================================== */

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: linear-gradient(
        180deg,
        #20242a 0%,
        #17191d 100%
    );
    border: 1px solid #2b2e33;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.metric-label {
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.metric-value {
    color: #d4af37;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ======================================
   WATCH CARDS
====================================== */

.card {
    display: flex;
    gap: 20px;
    align-items: center;
    background: #1b1d20;
    border: 1px solid #2b2e33;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.card:hover {
    border-color: #d4af37;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.card-details {
    flex: 1;
}

.thumbnail {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

/* ======================================
   COLLECTION GRID
====================================== */

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.watch-card {
    background: #1b1d20;
    border: 1px solid #2b2e33;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    cursor: pointer;
}

.watch-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: #d4af37;
    box-shadow: 0 15px 30px rgba(0,0,0,0.45);
}

.watch-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.watch-card:hover .watch-card-image {
    transform: scale(1.03);
}

.watch-card-body {
    padding: 18px;
}

.watch-card-body h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: white;
}

.watch-card-body p {
    margin: 6px 0;
}

.watch-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.watch-card-link:hover {
    text-decoration: none;
}

/* ======================================
   STATUS BADGES
====================================== */

.watch-image-container {
    position: relative;
    width: 100%;
}

.status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.owned-badge {
    background: linear-gradient(
        180deg,
        #2b8a4f,
        #236f40
    );
    color: white;
}

.sold-badge {
    background: linear-gradient(
        180deg,
        #9a3939,
        #7a2c2c
    );
    color: white;
}

/* ======================================
   WATCH INFORMATION
====================================== */

.watch-brand {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.watch-model {
    color: #999;
    margin-bottom: 18px;
    min-height: 40px;
}

.watch-value {
    color: #d4af37;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.card-return {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.watch-divider {
    height: 1px;
    background: #2b2e33;
    margin-bottom: 12px;
}

.watch-reference {
    color: #888;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* ======================================
   DETAIL PAGE
====================================== */

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.detail-watch-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
}

.detail-summary {
    display: flex;
    flex-direction: column;
}

.detail-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.detail-brand {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.detail-model {
    color: #999;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.detail-value {
    color: #d4af37;
    font-size: 3rem;
    font-weight: 700;
    margin-top: 20px;
}

.detail-status {
    display: inline-flex;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.detail-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.detail-card {
    background: linear-gradient(
        180deg,
        #20242a 0%,
        #17191d 100%
    );
    border: 1px solid #2b2e33;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.action-button {
    background: linear-gradient(
        180deg,
        #20242a 0%,
        #17191d 100%
    );
    border: 1px solid #2b2e33;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.2s ease;
}

.action-button:hover {
    border-color: #d4af37;
    color: #d4af37;
}

.action-button.delete-button:hover {
    border-color: #d9534f;
    color: #ff7b77;
}

.spec-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 15px;
}

.spec-grid div:nth-child(odd) {
    color: #999;
}

/* ======================================
   LOGIN
====================================== */

.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 450px;
    background: linear-gradient(
        180deg,
        #20242a 0%,
        #17191d 100%
    );
    border: 1px solid #2b2e33;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.login-title {
    text-align: center;
    color: #d4af37;
    margin-top: 0;
    margin-bottom: 10px;
    letter-spacing: 4px;
    font-size: 2.5rem;
}

.login-subtitle {
    text-align: center;
    color: #999;
    margin-bottom: 35px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.login-error {
    background: #5f1d1d;
    color: #ffb0b0;
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #d4af37;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    height: 50px;
    background: #262a2f;
    color: white;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 16px;
}

.form-group input:focus {
    border-color: #d4af37;
    outline: none;
}

.login-form button {
    width: 100%;
    height: 50px;
    margin-top: 15px;
    background: #d4af37;
    color: #111315;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.login-form button:hover {
    background: #e5c158;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(212,175,55,0.2);
}

/* ======================================
   FOOTER
====================================== */

footer {
    margin-top: 50px;
    text-align: center;
    color: #666;
    font-size: 0.8rem;
}

/* ======================================
   MOBILE
====================================== */

@media (max-width: 900px) {

    .detail-layout {
        display: block;
    }

    .detail-image {
        margin-bottom: 20px;
    }

    .detail-value {
        font-size: 2.5rem;
    }

    .detail-actions {
        flex-direction: column;
    }

    .action-button {
        width: 100%;
        text-align: center;
    }

    .spec-grid {
        display: block;
    }

    .spec-grid div {
        padding: 8px 0;
    }

    .spec-grid div:nth-child(odd) {
        color: #999;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        padding-top: 15px;
    }
}

@media (max-width: 700px) {

    .detail-heading {
        flex-direction: column;
        gap: 15px;
    }

    .detail-status {
        align-self: flex-start;
    }
}