/* ===========================
   RECIPEBOX DESIGN SYSTEM
=========================== */

:root {
    --primary: #7c3aed;
    --secondary: #a78bfa;
    --background: #f5f3ff;
    --card-bg: #ffffff;
    --text: #333333;
    --hover: #5b21b6;
    --border-radius: 12px;
    --spacing: 20px;
}


/* ===========================
   GENERAL STYLING
=========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    padding: 20px;
}


/* ===========================
   HEADINGS
=========================== */

h1 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 15px;
}

h2 {
    color: var(--primary);
    margin-top: 15px;
    margin-bottom: 10px;
}

h3 {
    color: var(--text);
    margin-bottom: 10px;
}


/* ===========================
   NAVIGATION BAR
=========================== */

nav {
    text-align: center;
    margin: 20px 0;
}

nav a {
    text-decoration: none;
    color: var(--primary);
    font-weight: bold;
    margin: 0 10px;
}

nav a:hover {
    color: var(--hover);
    text-decoration: underline;
}


/* ===========================
   SECTION STYLING
=========================== */

main {
    margin-bottom: 20px;
}

section {
    background-color: var(--card-bg);
    padding: var(--spacing);
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}


/* ===========================
   FORMS
=========================== */

input[type="text"] {
    width: 100%;
    padding: 10px;
    border-radius: var(--border-radius);
    border: 1px solid #cccccc;
    margin-top: 10px;
    margin-bottom: 15px;
}


/* ===========================
   BUTTONS
=========================== */

button {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--primary);
    color: white;
    cursor: pointer;
    font-size: 15px;
}

button:hover {
    background-color: var(--hover);
}


/* ===========================
   LINKS
=========================== */

a {
    text-decoration: none;
    color: var(--primary);
}

a:hover {
    color: var(--hover);
}


/* ===========================
   LIST STYLING
=========================== */

ul,
ol {
    margin-left: 25px;
    margin-top: 10px;
}

li {
    margin-bottom: 8px;
}


/* ===========================
   HORIZONTAL LINE
=========================== */

hr {
    margin: 20px 0;
}


/* ===========================
   FOOTER
=========================== */

footer {
    background-color: var(--card-bg);
    text-align: center;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 30px;
    font-size: 14px;
}


/* ===========================
   RESPONSIVE DESIGN
=========================== */

@media (max-width: 768px) {

    body {
        padding: 15px;
    }

    nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    button {
        width: 100%;
    }

    input[type="text"] {
        width: 100%;
    }
}