/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 *= require_tree .
 *= require_self
 */

body {
    margin: 0;
    position: relative;
    background-color: var(--bg-pink);

    main {
        margin: auto;
        margin-top: var(--golden-xl);
        max-width: var(--golden-line-length);
    }
}

:root {
    --box-shadow: var(--golden-xxs) var(--golden-xxs) var(--golden-s)
        rgba(0, 0, 0, 0.05);

    /* Golden Ratio Design System */

    --golden-base: 1rem;
    --golden-ratio: 1.618033988;
    --golden-inverse: calc(1 / var(--golden-ratio));

    --golden-xxs: calc(
        pow(var(--golden-inverse), 2) * var(--golden-base)
    ); /* 0.382 */
    --golden-xs: calc(var(--golden-inverse) * var(--golden-base)); /* 0.618 */
    --golden-s: calc(
        sqrt(var(--golden-inverse)) * var(--golden-base)
    ); /* 0.786 */
    --golden-m: var(--golden-base); /* 1     */
    --golden-l: calc(
        sqrt(var(--golden-ratio)) * var(--golden-base)
    ); /* 1.272 */
    --golden-xl: calc(var(--golden-ratio) * var(--golden-base)); /* 1.618 */
    --golden-xxl: calc(
        pow(var(--golden-ratio), 2) * var(--golden-base)
    ); /* 2.618 */

    --characters-per-line: 75;

    --golden-line-length: calc(
        var(--characters-per-line) / var(--golden-ratio) * var(--golden-base)
    );

    /* --golden-xxs: 0.382rem; /* GR Inverse Squared */
    /* --golden-xs:  0.618rem; /* GR Inverse */
    /* --golden-s:   0.786rem; /* GR Inverse Square Root */
    /* --golden-m:   1rem;
  /* --golden-l:   1.272rem; /* GR Square Root */
    /* --golden-xl:  1.618rem; /* Golden Ratio */
    /* --golden-xxl: 2.618rem; /* GR Squared */
}

/* Settings page layout */
.settings-content {
    display: grid;
    grid-template-columns: 12rem var(--golden-line-length);
    gap: var(--golden-m);
    margin-top: var(--golden-m);
    justify-content: center;
}

.settings-nav {
    position: sticky;
    top: var(--golden-m);
    height: fit-content;
}

.settings-nav .nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.settings-nav .nav-item {
    margin-bottom: var(--golden-xs);
}

.settings-nav .nav-link {
    display: block;
    padding: var(--golden-xs) var(--golden-m);
    text-decoration: none;
    color: var(--black);
    border-radius: var(--golden-xxs);
}

.settings-nav .nav-item.active .nav-link {
    background-color: var(--pink);
    color: var(--white);
}

.settings-nav .nav-link:hover {
    background-color: var(--alt-pink);
    color: var(--black);
}

/* Settings sections */
.settings-section {
    margin-bottom: var(--golden-m);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--golden-m);
    border-bottom: 1px solid var(--alt-gray);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info {
    flex: 1;
}

.setting-action {
    margin-left: var(--golden-m);
}
