/* ============================================
   APRS-IS Password Generator - Custom Styles (Updated)
   Author: SP2ONG
   File: /css/aprscode-custom.css
   ============================================ */

/* === ANIMATIONS === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { 
        opacity: 0; 
        transform: translateY(-30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.05); 
        opacity: 0.8; 
    }
}

@keyframes resultGlow {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(8, 220, 110, 0.3);
    }
    50% { 
        box-shadow: 0 0 25px rgba(8, 220, 110, 0.6);
    }
}

/* === MAIN CONTAINER === */
.aprscode-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 30px;
    animation: fadeIn 0.6s ease-in;
}


/* === TITLE === */
.aprscode-title {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #ffc107;
    text-shadow: 0.5px 0.5px 2px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin: 0 0 30px 0;
    padding: 18px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    border-radius: 12px;
    border: 2px solid rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
    animation: slideDown 0.7s ease-out;
}

.aprscode-title:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 152, 0, 0.15) 100%);
    border-color: rgba(255, 193, 7, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

/* === GENERATOR BOX === */
.generator-box {
    background: rgba(255, 255, 255, 0.05);
    background: #285cb8;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 193, 7, 0.3);
    margin-bottom: 30px;
    animation: slideUp 0.8s ease-out;
    transition: all 0.3s ease;
}

.generator-box:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 193, 7, 0.5);
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.2);
}

/* === INTRO TEXT === */
.intro-text {
    color: #f3ead3;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    margin: 0 0 25px 0;
}

/* === GENERATOR FORM === */
.generator-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ffc107;
    margin-bottom: 10px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.callsign-input {
    flex: 1;
    padding: 14px 20px;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    background: #fff;
    border: 2px solid #ffc107;
    border-radius: 8px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.callsign-input:focus {
    outline: none;
    border-color: #ffa726;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
    transform: scale(1.02);
}

.callsign-input::placeholder {
    text-transform: none;
    color: #999;
    font-style: italic;
}

.generate-button {
    padding: 14px 30px;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.generate-button:hover {
    background: linear-gradient(135deg, #ffd54f 0%, #ffc107 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.generate-button:active {
    transform: translateY(0);
}

/* === PASSCODE RESULT === */
.passcode-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: rgba(8, 220, 110, 0.1);
    border: 2px solid #08dc6e;
    border-radius: 10px;
    margin-bottom: 15px;
    animation: slideDown 0.5s ease-out, resultGlow 2s ease-in-out infinite;
}

.result-label {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #f3ead3;
}

.result-value {
    font-family: 'Courier New', monospace;
    font-size: 28px;
    font-weight: 700;
    color: #08dc6e;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    cursor: pointer;
    user-select: all;
    transition: all 0.3s ease;
}

.result-value:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

/* === ERROR MESSAGE === */
.error-message {
    background: rgba(255, 68, 68, 0.1);
    border-left: 4px solid #ff4444;
    padding: 12px 15px;
    border-radius: 6px;
    color: #ff6666;
    font-size: 14px;
    margin-bottom: 15px;
    animation: slideDown 0.5s ease-out;
}

/* === SOURCE CREDIT === */
.source-credit {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #b0c4de;
    font-style: italic;
}

.source-credit a {
    color: #00d4ff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.source-credit a:hover {
    color: #00aee8;
}

/* === INFO SECTION === */
.info-section {
    background: rgba(31, 42, 104, 1);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(0, 174, 232, 0.3);
    animation: slideUp 0.9s ease-out;
    transition: all 0.3s ease;
}

.info-section:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 174, 232, 0.5);
    box-shadow: 0 5px 20px rgba(0, 174, 232, 0.2);
}

.info-text {
    color: #f3ead3;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.info-label {
    font-weight: 600;
    color: #00d4ff;
}

/* === INFO BOX === */
.info-box {
    background: rgba(33, 150, 243, 0.1);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
    margin: 20px 0;
}

.info-box h3 {
    color: #00d4ff;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    margin: 0 0 15px 0;
}

.info-box ol {
    margin: 0;
    padding-left: 25px;
    color: #f3ead3;
}

.info-box li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 14px;
}

/* === INFO NOTE === */
.info-note {
    color: #b0c4de;
    font-size: 13px;
    line-height: 1.6;
    margin: 15px 0 0 0;
}

.info-note a {
    color: #00d4ff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.info-note a:hover {
    color: #00aee8;
}

/* === RESPONSIVE DESIGN === */

/* Tablet */
@media screen and (max-width: 768px) {
    .aprscode-container {
        padding: 20px;
        margin: 10px;
    }
    
    .aprscode-title {
        font-size: 22px;
        padding: 15px;
    }
    
    .generator-box,
    .info-section {
        padding: 20px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .generate-button {
        width: 100%;
    }
    
    .passcode-result {
        flex-direction: column;
        gap: 10px;
    }
}

/* Mobile portrait */
@media screen and (max-width: 480px) {
    .aprscode-container {
        padding: 15px;
        margin: 5px;
        border-radius: 10px;
    }
    
    .aprscode-title {
        font-size: 18px;
        padding: 12px;
    }
    
    .generator-box,
    .info-section {
        padding: 15px;
    }
    
    .callsign-input {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .generate-button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .result-value {
        font-size: 24px;
        padding: 8px 15px;
    }
    
    .info-box {
        padding: 15px;
    }
}

/* Very small screens */
@media screen and (max-width: 360px) {
    .aprscode-container {
        padding: 10px;
    }
    
    .aprscode-title {
        font-size: 16px;
    }
    
    .result-value {
        font-size: 20px;
    }
}
