/* /usr/share/nginx/html/reddit/style.css */

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&display=swap');

body {
    font-family: 'Rubik', sans-serif;
    background: #1a1a1b; /* Fallback */
    background: radial-gradient(ellipse at top, #3a3a3d 0%, #1a1a1b 70%);
    color: #d7dadc;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.promo-container {
    background-color: #272729;
    border: 1px solid #343536;
    border-top: 3px solid #FF5700;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

header {
    background-color: #343536;
    padding: 25px 30px;
    border-bottom: 1px solid #444;
}

header h1 {
    margin: 0;
    color: #fff;
    font-size: 30px;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 87, 0, 0.5);
}

.reddit-text {
    color: #FF5700; /* Reddit Orange */
    font-weight: 700;
}

header p {
    margin: 5px 0 0;
    font-size: 16px;
    color: #b0b3b8;
    text-align: center;
}

main {
    padding: 30px 40px;
}

main h2 {
    color: #FFB000; /* Gold Color */
    font-size: 26px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
}

main p {
    font-size: 16px;
    line-height: 1.7;
    color: #d7dadc;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #fff;
    text-align: left;
}

.form-group input[type="email"] {
    width: 100%;
    padding: 13px 15px;
    font-size: 16px;
    background-color: #1a1a1b;
    border: 1px solid #444;
    border-radius: 5px;
    color: #d7dadc;
    box-sizing: border-box; /* Important for 100% width */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: #FF5700;
    box-shadow: 0 0 0 4px rgba(255, 87, 0, 0.2);
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: #FF5700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.submit-btn:hover {
    background-color: #e04e00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 0, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.message {
    padding: 15px 20px;
    border-radius: 5px;
    margin-top: 25px;
    font-weight: 500;
    text-align: center;
    line-height: 1.6;
    border-width: 1px;
    border-style: solid;
}

.message.success {
    background-color: rgba(40, 167, 69, 0.15);
    border-color: #28a745;
    color: #a3d9b1;
}

.message.error {
    background-color: rgba(220, 53, 69, 0.15);
    border-color: #dc3545;
    color: #f0a0a8;
}

.message.info {
    background-color: rgba(23, 162, 184, 0.15);
    border-color: #17a2b8;
    color: #a0d8e0;
}

.code-display {
    background-color: #1a1a1b;
    border: 2px dashed #FF5700;
    padding: 20px;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #FFB000;
    letter-spacing: 2px;
    border-radius: 5px;
    margin-top: 25px;
    user-select: all; /* Makes it easy to copy */
    word-break: break-all;
}

footer {
    background-color: #1a1a1b;
    padding: 20px 30px;
    border-top: 1px solid #343536;
}

footer p {
    margin: 0;
    font-size: 12px;
    color: #818384;
    text-align: center;
}