/* Modern & Responsive Styling for Heart Sayings */

:root {
    --primary-color: #800000;
    --primary-dark: #600000;
    --secondary-bg: #fdfdfd;
    --text-color: #2d3436;
    --text-muted: #636e72;
    --border-color: #dfe6e9;
    --white: #ffffff;
    --accent-color: #ff7675;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--secondary-bg);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header & Navigation */
.v-toolbar__content {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: auto !important;
    min-height: 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

#logo {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: var(--transition);
}

#logo:hover {
    transform: scale(1.02);
}

.title {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0 30px;
    flex-shrink: 0;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navigation {
    display: flex;
    gap: 15px;
}

.navigation a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: var(--transition);
}

.navigation a:hover {
    background-color: #f1f2f6;
    color: var(--primary-color);
}

#red-line {
    border: none;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 0;
}

/* Main Content */
h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 40px 5% 20px;
    text-align: center;
    font-weight: 800;
}

/* Controls Section */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 5% 30px;
    flex-wrap: wrap;
}

.red-select, #searchBar {
    padding: 12px 18px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

.red-select {
    background-color: var(--white);
    color: var(--text-color);
    cursor: pointer;
    min-width: 200px;
}

#searchBar {
    flex-grow: 1;
    max-width: 500px;
}

.red-select:focus, #searchBar:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(128, 0, 0, 0.1);
}

/* Table Styling */
table {
    width: 90%;
    margin: 20px auto 50px;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

th {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 20px;
    text-align: left;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

td {
    padding: 20px;
    border-bottom: 1px solid #f1f2f6;
    font-size: 0.95rem;
    vertical-align: top;
    transition: var(--transition);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #fafbfc;
    color: var(--primary-color);
}

td b {
    color: var(--primary-color);
    display: block;
    margin-bottom: 4px;
}

/* Content Box (Project/Help) */
.content {
    max-width: 800px;
    width: 90%;
    margin: 40px auto;
    padding: 40px;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    text-align: left;
}

.content h1 {
    margin-top: 0;
    font-size: 1.8rem;
    text-align: left;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .v-toolbar__content {
        flex-direction: column;
        padding: 15px;
        text-align: center;
    }

    .title {
        margin: 10px 0;
        font-size: 1.2rem;
    }

    .navigation {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    h1 {
        font-size: 1.5rem;
    }

    .controls {
        flex-direction: column;
        gap: 10px;
    }

    #searchBar, .red-select {
        width: 100%;
        max-width: 100%;
    }

    /* Responsive Table (Card Layout) */
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        margin-bottom: 20px;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        overflow: hidden;
    }

    td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50% !important;
        text-align: right;
    }

    td:before {
        position: absolute;
        top: 16px;
        left: 18px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        color: var(--primary-color);
        content: attr(data-label);
        text-align: left;
    }

    td:last-child {
        border-bottom: none;
    }
}
