/*
 * ISBN Book Lookup prototype — styling lifted from ehoff's default (orange)
 * variant: css/scss/_variables_orange.scss + _ehoff.scss + _collections.scss.
 */

:root {
    --main-bg-color: #f9f8f6;      /* $main-bg-color */
    --brand-color1: #ff9900;       /* $brand-color1  */
    --brand-color2: #f6691d;       /* $brand-color2  */
    --brand-color3: #ef5d29;       /* $brand-color3  */
    --brand-color5: #4e4e4e;       /* $brand-color5  */
    --brand-color13: #cabeb2;      /* $brand-color13 */
    --brand-color16: #cccccc;      /* $brand-color16 */
    --brand-color17: #d5d5d5;      /* $brand-color17 */
    --brand-color19: #f6f6f6;      /* $brand-color19 */
    --brand-color40: #323232;      /* $brand-color40 */
    --brand-color100: #333333;     /* $brand-color100 */
    --error: #e23f00;              /* $error */
}

* { box-sizing: border-box; }

html {
    background-color: var(--main-bg-color);
    min-height: 100%;
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    color: var(--brand-color100);
    background-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-family: 'Titillium Web', sans-serif;
    font-weight: 400;
}

a { color: var(--brand-color2); text-decoration: none; }
a:hover { color: var(--brand-color1); }

/* ---- Top navigation (like $nav-bg / $nav-main-links) ---- */

.ccTopNav {
    background-color: var(--brand-color100);
    border-bottom: 1px solid var(--brand-color5);
    color: #f5f7ff;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ccTopNav .navBrand {
    font-family: 'Titillium Web', sans-serif;
    font-size: 20px;
    letter-spacing: 1px;
    color: #f5f7ff;
}

.ccTopNav .navBrand span { color: var(--brand-color1); }

.ccTopNav .navBadge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-color100);
    background: var(--brand-color13);
    border-radius: 3px;
    padding: 3px 8px;
}

/* ---- Page layout ---- */

.container {
    position: relative;
    max-width: 1024px;
    margin: 0 auto;
    padding: 30px 15px 60px;
}

.pageTitle { font-size: 30px; margin-bottom: 4px; }
.pageSubtitle { color: var(--brand-color5); margin: 0 0 25px; }

.whiteBg {
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    padding: 25px;
    margin-bottom: 25px;
}

.boxTitle {
    font-size: 22px;
    border-bottom: 1px solid var(--brand-color17); /* $boxTitle-borderBottom-color */
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.boxSubTitle {
    color: var(--brand-color1);                     /* $boxSubTitle-color */
    border-bottom: 1px solid var(--brand-color17);
    font-size: 17px;
    padding-bottom: 6px;
    margin-bottom: 15px;
}

.inputRow { display: flex; gap: 25px; }
.inputCol { flex: 1 1 0; min-width: 0; }

.orDivider {
    flex: 0 0 auto;
    align-self: center;
    color: var(--brand-color13);
    font-family: 'Titillium Web', sans-serif;
    font-size: 18px;
    text-transform: uppercase;
}

/* ---- Forms (Bootstrap 3 metrics + modal focus color) ---- */

label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: 700;
}

.form-control {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.42857143;
    color: #555555;
    background-color: #fff;
    border: 1px solid var(--brand-color16);
    border-radius: 4px;
    transition: border-color ease-in-out 0.15s;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-color1); /* $modal-form-inputs-focus-border-color */
}

.ccRequired { color: var(--brand-color2); }

.helpText { color: #999999; font-size: 12px; margin-top: 6px; }

/* ---- Buttons (Bootstrap 3 base + $modal-Button colors) ---- */

.btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-family: inherit;
    font-weight: normal;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: background-color 0.15s ease-in-out;
}

.btn-cc { /* $modal-Button-background / hover */
    color: #fff;
    background-color: var(--brand-color1);
    border-color: var(--brand-color1);
}
.btn-cc:hover, .btn-cc:focus { background-color: var(--brand-color2); border-color: var(--brand-color2); color: #fff; }

.btn-cc-dark { /* $button-primary-background / border */
    color: #fff;
    background-color: var(--brand-color5);
    border-color: var(--brand-color100);
}
.btn-cc-dark:hover, .btn-cc-dark:focus { background-color: var(--brand-color40); border-color: var(--brand-color40); color: #fff; }

.btn[disabled] { cursor: not-allowed; opacity: 0.65; }

/* ---- Drop zone (_dropzone.scss look) ---- */

#drop-zone {
    text-align: center;
    min-height: 190px;
    border: 2px dashed var(--brand-color17);
    border-radius: 5px;
    background: #fff;
    padding: 30px 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s ease-in-out;
}

#drop-zone:hover, #drop-zone.dragOver {
    border-color: var(--brand-color1);
    border-style: solid;
}

#drop-zone .dzMessage {
    font-size: 25px; /* .dz-default.dz-message span */
    color: rgba(0, 0, 0, 0.3); /* $drop-zone-color */
    font-family: 'Titillium Web', sans-serif;
}

#drop-zone .dzSub { color: rgba(0, 0, 0, 0.3); margin-top: 4px; }

#drop-zone img.dzPreview {
    max-width: 100%;
    max-height: 120px;
    margin-bottom: 10px;
    border: 1px solid var(--brand-color17);
}

.scanStatus { margin-top: 10px; min-height: 20px; }
.scanStatus .found { color: #598527; font-weight: 700; } /* $brand-color39 */

/* ---- Spinner ($spinner-color1..4) ---- */

.ccSpinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid rgba(255, 153, 0, 0.5);
    border-bottom-color: rgba(255, 153, 0, 0.75);
    border-left-color: var(--brand-color1);
    animation: ccSpin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes ccSpin { to { transform: rotate(360deg); } }

/* ---- Messages ---- */

.ccError { color: var(--error); }
.ccHidden { display: none !important; }

/* ---- Book result (collections field styling) ---- */

.bookCard { display: flex; gap: 25px; }

.bookCoverBox {
    flex: 0 0 180px;
    background: var(--brand-color19);
    border: 1px solid var(--brand-color17);
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
}

.bookCoverBox img { max-width: 100%; max-height: 260px; display: block; }

.bookFields { flex: 1 1 0; min-width: 0; }

.bookTitle { font-size: 24px; margin-bottom: 15px; }

.fieldRow { display: flex; padding: 5px 0; border-bottom: 1px solid var(--brand-color19); }
.fieldTitle {  /* $collections-fieldTitle */
    flex: 0 0 140px;
    color: var(--brand-color2);
    font-weight: 700;
}
.fieldValue { color: var(--brand-color100); overflow-wrap: anywhere; } /* $collections-fieldValue */

.subjectChip { /* $select2-selection-choice-* */
    display: inline-block;
    background: var(--brand-color2);
    border: 1px solid var(--brand-color2);
    color: #fff;
    border-radius: 4px;
    padding: 1px 8px;
    margin: 2px 4px 2px 0;
    font-size: 12px;
}

.bookSynopsis { margin-top: 15px; color: var(--brand-color5); }
.bookSynopsis .fieldTitle { display: block; margin-bottom: 5px; }

.synText.synClamped {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bookActions { margin-top: 20px; display: flex; gap: 10px; align-items: center; }
.bookActions .protoNote { color: #999999; font-style: italic; }

/* ---- Recently fetched (collections table header look) ---- */

.fileTable { width: 100%; border-collapse: collapse; }
.fileTable thead th { /* $collections-internal-tableHeader-* */
    background: var(--brand-color13);
    color: #fff;
    font-weight: 400;
    text-align: left;
    padding: 8px 12px;
}
.fileTable tbody td { padding: 8px 12px; border-bottom: 1px solid var(--brand-color19); }
.fileTable tbody tr:nth-child(even) { background: var(--brand-color19); } /* $fileTableEven-bg */

/* ---- Footer ---- */

.ccFooter {
    text-align: center;
    color: #999999;
    font-size: 12px;
    padding: 20px 0 30px;
}

@media (max-width: 767px) {
    .inputRow { flex-direction: column; }
    .orDivider { align-self: center; }
    .bookCard { flex-direction: column; }
    .bookCoverBox { align-self: center; }
    .fieldRow { flex-direction: column; }
    .fieldTitle { flex: none; }
}
