@import './reset.css';

* {
    box-sizing: border-box;
}

html {
    width: 100%;
}

body {
    background: #f6f6f6;
    color: #333;
    font-family: "Signika Negative", serif;
    font-size: calc(15px + 0.390625vw);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@media (min-width:768px) {
    body {
        font-size: 18px;
    }
}

.film_title {
    font-size: 2.4rem;
    font-weight: 700;
    text-align: center;
    font-family: "Afacad", sans-serif;
    margin-bottom: 20px;
}

.film_heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

a {
    text-decoration: none;
    color: #000;
}

a:hover {
    color: rgb(255, 174, 0);
}

h2 {
    font-size: 1.2em;
    font-weight: 700;
    text-transform: uppercase;
}

p {
    font-size: 0.9em;
    font-weight: 500;
}

.main {
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 10px;
    padding: 20px;
    line-height: 1.5;
}

@media (max-width:768px) {
    .main {
        padding: 0 0 1vw 0;
    }
}

.content {
    flex: 1 1;
}

.block {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: none;
    border: solid 1px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 30px;
}

@media screen and (max-width: 768px) {
    .block {
        border-radius: 0px;
        border-left: 0;
        border-right: 0;
        padding: 30px 20px;
    }
}

.film_info {
    margin-top: 12px;
}

.film_info p {
    font-size: 0.8em;
    font-weight: 400;
    color: #444;
}

.row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.row+.row {
    margin-top: 15px;
}

.row.spaced {
    margin-top: 25px;
}

label {
    width: 100%;
    position: relative;
    display: inline-block;
}

label span {
    padding: 10px;
    pointer-events: none;
    position: absolute;
    left: 10px;
    top: 4px;
    transition: 0.2s;
    opacity: 0.5;
    font-family: "Signika Negative", serif;
    font-size: 0.85rem;
    margin-top: 0px;
}

input {
    width: 100%;
    background: #f8f8f8;
    border-radius: 3px;
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.35),
        inset 0 -1px 1px rgba(0, 0, 0, 0.05),
        0 1px 0px rgba(255, 255, 255, 1);
    border: none;
    font-weight: 500;
    padding: 14px 15px 12px 15px;
    font-family: "Signika Negative", serif;
    font-size: 0.9rem;
}

input:focus,
input:not(:placeholder-shown) {
    border-color: #000;
    background: linear-gradient(0deg, rgba(250, 250, 250, 1) 0%, rgba(255, 255, 255, 1) 100%);
}

input:focus+span,
input:not(:placeholder-shown)+span {
    opacity: 1;
    color: #444;
    background-color: #fff;
    transform: scale(0.85) translateY(-70%) translateX(-5px);
    padding: 5px;
}

input.alert {
    background-color: rgba(255, 0, 0, 0.18);
}

button:hover {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(40, 40, 40, 0.95) 100%);
}

button {
    cursor: pointer;
    background: rgb(40, 40, 40);
    border-radius: 5px;
    font-family: "Signika Negative", serif;
    color: #eee;
    font-weight: 500;
    font-size: 1.1rem;
    width: 100%;
    padding: 12px;
    border: none;
}

.text_alert {
    width: 100%;
    color: #ac2828;
    background-color: rgba(172, 40, 40, 0.08);
    border: 1px solid rgba(172, 40, 40, 0.2);
    border-radius: 4px;
    padding: 10px 14px;
    margin-top: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

#code_block_login_output {
    display: none;
}

.text_success {
    width: 100%;
    color: #2e7d32;
    background-color: rgba(46, 125, 50, 0.08);
    border: 1px solid rgba(46, 125, 50, 0.2);
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.film_auth_links {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
}

.film_auth_links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
}

.film_auth_links a:hover {
    color: rgb(255, 174, 0);
}

.film_auth_info {
    font-size: 0.8em;
    font-weight: 400;
    color: #444;
    margin-top: 12px;
}

.film_toggle_link {
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
}

.film_toggle_link:hover {
    color: rgb(255, 174, 0);
}

.film_alert_link {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #000;
}

.film_alert_link:hover {
    color: rgb(255, 174, 0);
}

.film_info_section {
    margin-top: 22px;
}

.film_c_header {
    display: flex;
    align-items: center;
    padding-bottom: 10px;
}

.film_c_header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
}

.film_c_header a {
    margin-left: auto;
    font-size: 0.85rem;
    font-weight: 500;
}

.film_c_row {
    display: flex;
    align-items: baseline;
    padding: 9px 0;
    border-top: 1px solid #eee;
}

.film_c_row:last-child {
    border-bottom: 1px solid #eee;
}

.film_c_label {
    font-size: 0.8rem;
    font-weight: 400;
    color: #888;
    width: 110px;
    flex-shrink: 0;
}

.film_c_value {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.film_summary {
    margin-top: 20px;
    font-size: 0.85rem;
    font-weight: 400;
    color: #666;
    line-height: 1.5;
}

.film_edit_buttons {
    display: flex;
    gap: 10px;
}

.film_edit_buttons button {
    flex: 1;
}

.button_secondary {
    background: #e0e0e0;
    color: #333;
}

.button_secondary:hover {
    background: linear-gradient(0deg, rgba(200, 200, 200, 1) 0%, rgba(220, 220, 220, 1) 100%);
}

/* Complete page */

.film_complete_center {
    text-align: center;
}

.film_complete_check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 2px solid #2e7d32;
    border-radius: 50%;
    margin-bottom: 16px;
}

.film_complete_check svg {
    width: 28px;
    height: 28px;
    stroke: #2e7d32;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.film_complete_message {
    font-size: 0.85rem;
    font-weight: 400;
    color: #555;
    line-height: 1.5;
    margin-top: 10px;
}

.film_complete_address {
    margin-top: 24px;
    border-left: 3px solid #333;
    padding: 14px 18px;
    background: #fafafa;
}

.film_complete_address_heading {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 8px;
}

.film_complete_address_name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
}

.film_complete_address_lines {
    margin-top: 4px;
    font-size: 0.85rem;
    font-weight: 400;
    color: #555;
    line-height: 1.6;
}

.film_complete_link {
    margin-top: 28px;
    text-align: center;
}

.film_complete_link a {
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    border-bottom: 1px solid #ccc;
    padding-bottom: 1px;
}

.film_complete_link a:hover {
    color: rgb(255, 174, 0);
    border-bottom-color: rgb(255, 174, 0);
}
