/* ========================================
   Complete Unified CSS for Scottish Crown
   ======================================== */

/* ------------------------
   Global Styles
------------------------- */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Helvetica, sans-serif;
    background-color: #f3f1ed; /* soft cream */
    color: #111;
    line-height: 1.7;
    overflow-x: hidden;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* ------------------------
   Page Wrapper
------------------------- */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ------------------------
   Main Content
------------------------- */
.main-content {
    flex: 1;
    max-width: 1200px; /* wider for desktops */
    margin: 20px auto;
    padding: 30px; /* more padding */
    background-color: #fffaf0;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    font-size: 1rem; /* slightly larger base font */
}


/* ------------------------
   Headings
------------------------- */
h1, h2, h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #000;
}

h1 {
    font-size: 1.8em;
}

h2 {
    font-size: 1.5em;
}

h3 {
    font-size: 1.3em;
}

/* ------------------------
   Paragraphs and Lists
------------------------- */
p {
    line-height: 1.6;
    margin-bottom: 1em;
}

ul, ol {
    padding-left: 20px;
    margin-bottom: 1em;
}

li {
    margin-bottom: 0.5em;
}

/* ------------------------
   Links
------------------------- */
a {
    text-decoration: none;
    color: #4b2e83; /* royal purple */
    transition: color 0.2s ease;
}

a:hover {
    color: #6a3ca5; /* lighter purple */
}

/* ------------------------
   Tables
------------------------- */
table {
    border-collapse: collapse;
    width: 100%;
}

table th, table td {
    border: 1px solid #e0d8c3; /* soft gold */
    padding: 10px;
    text-align: left;
}

table th {
    background-color: #fffaf0; /* ivory */
    color: #4b2e83;
    font-weight: bold;
}

/* ------------------------
   Dashboard
------------------------- */
.dashboard-container {
    display: flex;
    flex-wrap: wrap; /* allows multiple cards per row */
    gap: 24px;
}

.dashboard-card {
    flex: 1 1 48%; /* two cards per row on desktop */
    min-width: 300px;
    padding: 24px;
    border-radius: 12px;
    background-color: #fffaf0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.dashboard-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #4b2e83;
}

.dashboard-subtitle {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #555;
}

.dashboard-select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    font-family: inherit;
    background-color: #fffaf0;
    color: #333;
}

.dashboard-content {
    background-color: #fefcf5;
    padding: 12px;
    border-radius: 6px;
    min-height: 80px;
    white-space: pre-wrap;
    font-size: 1rem;
    line-height: 1.6;
}

.dashboard-demo {
    background-color: #fff7e6;
    padding: 14px;
    border-radius: 8px;
    min-height: 100px;
    white-space: pre-wrap;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    border: 1px solid #e0d8c3;
}

/* ------------------------
   Header & Navigation
------------------------- */
header {
    background-color: #000;
    color: #fff;
    padding: 20px 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}

header h1 {
    font-size: 1.8em;
    display: inline-block;
    
    font-weight: bold;
}

header nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

header nav a {
    color: #ffd700; /* gold */
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    transition: 0.2s;
}

header nav a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ------------------------
   Footer
------------------------- */
footer {
    background-color: #000;
    color: #fff;
    padding: 20px;
    text-align: center;
}

/* ------------------------
   Blockquotes & Citations
------------------------- */
blockquote {
    border-left: 4px solid #007acc;
    padding-left: 15px;
    margin-left: 0;
    color: #333;
    background: #f6f6f6;
    font-style: italic;
}

.cite {
    font-size: 0.9em;
    color: #555;
    margin-top: 10px;
}

/* ------------------------
   Share Buttons
------------------------- */
.share-buttons {
    margin-top: 40px;
    text-align: center;
}

.share-buttons a {
    margin: 0 10px;
    text-decoration: none;
    font-size: 1.2em;
    display: inline-block;
}

/* ------------------------
   Responsive Styles
------------------------- */
@media screen and (max-width: 768px) {

    .main-content {
        margin: 10px auto;
        padding: 15px;
        max-width: 640px;
    }

    .dashboard-card {
        flex: 1 1 100%; /* stack cards on mobile */
        padding: 20px;
    }

    .dashboard-title {
        font-size: 1.2rem;
    }

    .dashboard-subtitle {
        font-size: 0.9rem;
    }

    .dashboard-select {
        font-size: 1rem;
    }

    header h1 {
        font-size: 1.4em;
    }

    header nav a {
        font-size: 14px;
        padding: 5px 8px;
    }

    footer {
        font-size: 0.85rem;
        padding: 10px;
    }
}

@media screen and (max-width: 480px) {

    .main-content {
        padding: 10px;
        /*max-width: 320px;*/
    }

    .dashboard-title {
        font-size: 1.1rem;
    }

    .dashboard-subtitle {
        font-size: 0.85rem;
    }

    .dashboard-select {
        font-size: 0.9rem;
    }

    header h1 {
        font-size: 1.2em;
    }
}
