/* ============================================================
   HashGuard Lite
   styles.css
   ------------------------------------------------------------
   Global application styles.
   This file contains:
   - Layout
   - Header
   - Typography
   - File selection
   - Bitcoin information
   - Footer
   - Responsive design

   Hash UI styles are located in:
   hash_management.css
   ============================================================ */


/* ============================================================
   GLOBAL RESET
   ============================================================ */

* {

    box-sizing: border-box;

    margin: 0;

    padding: 0;

}


/* ============================================================
   BODY
   ============================================================ */

body {

    min-height: 100vh;

    background:
        radial-gradient(
            circle at top,
            #243b55,
            #141e30
        );

    font-family:

        Inter,

        Arial,

        Helvetica,

        sans-serif;

    color: #1f2937;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 40px;

}


/* ============================================================
   MAIN CARD
   ============================================================ */

.card {

    width: min(1250px, 100%);

    background: rgba(255,255,255,.96);

    border-radius: 15px;

    padding: 40px;

    box-shadow:

        0 20px 50px rgba(0,0,0,.25);

}


/* ============================================================
   HEADER
   ============================================================ */

.brand-header {

    display: flex;

    justify-content: center;

}


.brand {

    display: flex;

    flex-direction: column;

    align-items: center;

    margin-bottom: 50px;

}


.logo {

    width: 350px;

    object-fit: contain;

    margin-bottom: 5px;
    border-radius: 10px;

}


.brand h1 {

    margin: 0;

    font-size: 20px;

    font-weight: 700;

    line-height: 1.1;

    color: silver;

}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h2 {

    margin-bottom: 15px;

}


.subtitle {

    color: #6b7280;

    line-height: 1.6;

    max-width: 1000px;

}


/* ============================================================
   SECTIONS
   ============================================================ */

section {

    margin-top: 35px;

}


/* ============================================================
   FILE SELECTION
   ============================================================ */

.file-box {

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    padding: 25px;

    border-radius: 14px;

}


input[type="file"] {

    margin-top: 15px;

    cursor: pointer;

}


#file-info {

    margin-top:10px;

    color:#64748b;

    font-size:14px;

}


/* ============================================================
   BITCOIN INFORMATION
   ============================================================ */

.bitcoin-grid {

    display: grid;

    grid-template-columns: repeat(3,1fr);

    gap: 20px;

    margin-top: 25px;

}


.info-card {

    background:

        linear-gradient(

            145deg,

            #ffffff,

            #f1f5f9

        );

    border: 1px solid #e5e7eb;

    border-radius: 16px;

    padding: 20px;

    text-align: center;

    transition: transform .2s ease;

}


.info-card:hover {

    transform: translateY(-4px);

}


.info-card h3 {

    font-size: 15px;

    color: #64748b;

    margin-bottom: 12px;

}


.info-value {

    font-size: 22px;

    font-weight: 700;

    color: #0f172a;

}


.bitcoin-icon {

    color: #f7931a;

}


/* ============================================================
   STATUS
   ============================================================ */

.status-card {

    margin-top: 25px;

    text-align: center;

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-radius: 12px;

    padding: 15px;

    color: #475569;

}


.status-success {

    color: #16a34a;

}


.status-error {

    color: #dc2626;

}


/* ============================================================
   GENERIC BUTTONS
   ============================================================ */

button {

    border: none;

    border-radius: 10px;

    padding: 10px 18px;

    cursor: pointer;

    font-weight: 600;

    transition: .2s ease;

}


button:hover {

    transform: translateY(-2px);

}



/* ------------------------------
   Bitcoin cost explanation
------------------------------ */

.cost-explanation {

    margin-top: 20px;

    text-align: center;

    font-size: 13px;

    color: #64748b;

    line-height: 1.5;

}


/* ============================================================
   PROJECTS FOOTER
   ============================================================ */

.projects-footer {

    margin-top: 50px;

    margin-right: 25px;

    padding-top: 30px;

    padding-right: 20px;

    border-top: 1px solid #ddd;

    text-align: center;

}


.projects-footer p {

    color: #666;

    margin: 15px 0 25px;

}


.projects-grid {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 15px;

}


.project-link {

    background: DarkCyan;

    color: lightgrey;

    text-decoration: none;

    padding: 12px 18px;

    border-radius: 8px;

    transition: .2s;

}


.project-link:hover {

    background: #0d47a1;

    color: white;

}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width:700px) {

    body {

        padding: 20px;

    }

    .card {

        padding: 25px;

    }

    .bitcoin-grid {

        grid-template-columns: 1fr;

    }

    .logo {

        width: 250px;

    }

}