/* Louisiana QSO Party - Upload Page CSS
 * Matches Louisiana Contest Club website styling
 */

/* ========== CSS Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    background: #f5efe0;
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 1.8rem;
    letter-spacing: -0.015em;
    line-height: 1.5;
    text-align: left;
}

/* ========== Layout Helpers ========== */
.section-inner {
    margin-left: auto;
    margin-right: auto;
    max-width: 120rem;
    width: calc(100% - 4rem);
}

.section-inner.thin {
    max-width: 58rem;
}

/* ========== Header ========== */
#site-header {
    background: #fff;
    padding: 3.15rem 0;
    position: relative;
}

.header-titles-wrapper {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.site-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-title a:hover {
    text-decoration: underline;
}

.site-description {
    color: #6d6d6d;
    font-size: 1.6rem;
    font-weight: 500;
    margin-top: 1rem;
    line-height: 1.4;
}

.site-description a {
    color: #cd2653;
    text-decoration: none;
}

.site-description a:hover {
    text-decoration: underline;
}

/* ========== Main Content ========== */
#site-content {
    overflow: hidden;
}

.post-single {
    background: #fff;
    margin: 4rem auto;
    padding: 4rem 0;
}

.post-inner {
    max-width: 80rem;
    margin: 0 auto;
}

.entry-content {
    line-height: 1.6;
}

.entry-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.entry-content h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content a {
    color: #cd2653;
    text-decoration: underline;
}

.entry-content a:hover {
    text-decoration: none;
}

/* Styled Separator (from TwentyTwenty theme) */
hr.styled-separator {
    background: linear-gradient(
        to left,
        currentColor calc(50% - 16px),
        transparent calc(50% - 16px),
        transparent calc(50% + 16px),
        currentColor calc(50% + 16px)
    );
    border: none;
    color: #6d6d6d;
    height: 0.1rem;
    margin: 3rem 0;
    overflow: visible;
    position: relative;
}

hr.styled-separator::before,
hr.styled-separator::after {
    background: currentColor;
    content: "";
    display: block;
    height: 1.6rem;
    position: absolute;
    top: calc(50% - 0.8rem);
    transform: rotate(22.5deg);
    width: 0.1rem;
}

hr.styled-separator::before {
    left: calc(50% - 0.5rem);
}

hr.styled-separator::after {
    right: calc(50% - 0.5rem);
}

/* ========== Step Indicator ========== */
.step-indicator {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    margin: 2rem 0;
    color: #6d6d6d;
}

/* ========== Form Styles ========== */
#upload-form {
    max-width: 70rem;
    margin: 3rem auto;
}

.form-group {
    margin-bottom: 2.5rem;
}

.form-group label {
    display: block;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #000;
}

.required {
    color: #cd2653;
}

/* Text Inputs */
input[type="text"],
input[type="email"],
input[type="file"],
textarea {
    background: #fff;
    border: 0.1rem solid #dcd7ca;
    border-radius: 0;
    color: #000;
    display: block;
    font-family: inherit;
    font-size: 1.6rem;
    padding: 1.2rem 1.5rem;
    width: 100%;
    transition: border-color 0.15s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #cd2653;
    outline: none;
}

textarea {
    font-family: monospace;
    line-height: 1.4;
    resize: vertical;
}

input[type="file"] {
    padding: 1rem;
    cursor: pointer;
}

.help-text {
    color: #6d6d6d;
    font-size: 1.4rem;
    margin-top: 0.5rem;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    font-weight: 400;
    cursor: pointer;
    font-size: 1.6rem;
}

.radio-label input[type="radio"] {
    margin-right: 0.8rem;
    cursor: pointer;
    width: 1.8rem;
    height: 1.8rem;
}

/* OR Divider */
.or-divider {
    position: relative;
    text-align: center;
    margin: 3rem 0;
}

.or-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 0.1rem;
    background: #dcd7ca;
}

.or-divider span {
    background: #fff;
    color: #6d6d6d;
    font-weight: 600;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Submit Button */
.submit-group {
    text-align: center;
    margin-top: 3rem;
}

.submit-button {
    background: #cd2653;
    border: none;
    border-radius: 0;
    color: #fff;
    cursor: pointer;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 1.4rem 3rem;
    text-transform: uppercase;
    transition: opacity 0.15s;
}

.submit-button:hover,
.submit-button:focus {
    opacity: 0.9;
    outline: 2px solid #cd2653;
    outline-offset: 2px;
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== Result Messages ========== */
.result-message {
    max-width: 70rem;
    margin: 3rem auto;
    padding: 2rem;
    border-radius: 0.4rem;
    font-size: 1.6rem;
}

.result-message.success {
    background: #d4edda;
    border: 0.2rem solid #28a745;
    color: #155724;
}

.result-message.error {
    background: #f8d7da;
    border: 0.2rem solid #dc3545;
    color: #721c24;
}

.result-message h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.result-message ul {
    margin-left: 2rem;
    margin-top: 1rem;
}

.result-message li {
    margin-bottom: 0.5rem;
}

.result-message .qso-info {
    margin-top: 1.5rem;
    font-weight: 600;
}

.result-message .warning {
    color: #856404;
    background: #fff3cd;
    border-left: 0.3rem solid #ffc107;
    padding: 1rem;
    margin-top: 1rem;
}

.result-message .warning-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ========== Footer ========== */
#site-footer {
    background: #fff;
    padding: 4rem 0;
    margin-top: 5rem;
    text-align: center;
}

.footer-credits p {
    color: #6d6d6d;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.footer-credits a {
    color: #cd2653;
    text-decoration: none;
}

.footer-credits a:hover {
    text-decoration: underline;
}

/* ========== Responsive Design ========== */

/* Tablets (768px and below) */
@media (max-width: 768px) {
    html {
        font-size: 56.25%; /* 1rem = 9px */
    }
    
    .site-title {
        font-size: 2.4rem;
    }
    
    .site-description {
        font-size: 1.4rem;
    }
    
    .post-single {
        margin: 2rem auto;
        padding: 2rem 0;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-inner {
        width: calc(100% - 3rem);
    }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
    html {
        font-size: 50%; /* 1rem = 8px */
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .header-titles-wrapper {
        padding: 0 1rem;
    }
    
    .post-single {
        margin: 1rem auto;
    }
    
    .section-inner {
        width: calc(100% - 2rem);
    }
    
    .entry-content h1 {
        font-size: 2.8rem;
    }
    
    .entry-content h2 {
        font-size: 2rem;
    }
    
    .submit-button {
        width: 100%;
        padding: 1.6rem 2rem;
    }
}

/* Loading State */
.submit-button.loading::after {
    content: "...";
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}
