/* style.css */

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

body {
    min-height: 100vh;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: #0f1117;
    color: #e6e6e6;
    line-height: 1.6;
}

/* Header */

header {
    padding: 70px 20px 40px;
    text-align: center;
}

.header-content {
    max-width: 900px;
    margin: auto;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ffffff;
    letter-spacing: -1px;
}

header p {
    color: #b5b5b5;
    font-size: 1.1rem;
    margin: 10px 0;
}

header a:not(.button) {
    color: #6ea8fe;
    text-decoration: none;
    font-weight: 600;
}

header a:not(.button):hover {
    text-decoration: underline;
}


/* Divider */

hr {
    border: none;
    height: 1px;
    background: #292d38;
    max-width: 1100px;
    margin: 20px auto;
}


/* Main content */

main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}


/* Cards */

.card {
    background: #171a22;
    border: 1px solid #272c38;
    border-radius: 18px;
    padding: 30px;
    min-height: 220px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    transition: 
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: #3d7cff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}


.card h2 {
    font-size: 1.6rem;
    color: white;
    margin-bottom: 12px;
}


.card p {
    color: #a9adb8;
    margin-bottom: 25px;
}


/* Buttons */

.button {
    display: inline-block;

    background: #2563eb;
    color: white;

    padding: 10px 18px;
    margin: 5px 5px 5px 0;

    border-radius: 10px;

    text-decoration: none;
    font-weight: 600;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}


.button:active {
    transform: translateY(0);
}


/* Admin styling */

.admin {
    border-color: #7f1d1d;
}


.button.admin {
    background: #dc2626;
}


.button.admin:hover {
    background: #b91c1c;
}


/* Footer */

footer {
    text-align: center;
    color: #8b8f99;
    padding: 30px 20px;
}

footer hr {
    margin-bottom: 20px;
}


/* Page load animation */

.page-load {
    animation: fadeIn 0.6s ease-out;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Mobile */

@media (max-width: 600px) {

    header h1 {
        font-size: 2.2rem;
    }

    main {
        margin-top: 20px;
    }

    .card {
        padding: 25px;
    }

    .button {
        width: 100%;
        text-align: center;
    }
}

/* Account username link */

.account-link {

    color: #60a5fa;

    text-decoration: none;

    font-weight: 700;

    position: relative;

    display: inline-block;

    transition:
        color 0.25s ease;

}



.account-link::after {

    content: "";

    position: absolute;

    left: 50%;

    bottom: -3px;

    width: 0;

    height: 2px;

    background: linear-gradient(
        90deg,
        #3d7cff,
        #60a5fa
    );

    border-radius: 10px;

    transform: translateX(-50%);

    transition:
        width 0.3s ease;

}



.account-link:hover::after {

    width: 100%;

}