/* AJ+ Main Stylesheet */
/* ==================================== */

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.flash-message {
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    transition: opacity 0.3s ease;
}

.flash-success {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.9), rgba(0, 200, 100, 0.9));
    color: #000;
}

.flash-error {
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.9), rgba(200, 0, 0, 0.9));
    color: #fff;
}

.flash-warning {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.9), rgba(200, 150, 0, 0.9));
    color: #000;
}

.flash-info {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.9), rgba(0, 150, 200, 0.9));
    color: #fff;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Common Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #ff3333, #cc0000);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.5), 0 0 40px rgba(255, 51, 51, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #c0c0c0;
    color: #c0c0c0;
}

.btn-secondary:hover {
    border-color: #00d4ff;
    color: #00d4ff;
}

.btn-outline {
    background: transparent;
    border: 2px solid #c0c0c0;
    color: #c0c0c0;
}

.btn-outline:hover {
    background: #c0c0c0;
    color: #0a0a0a;
}

/* Section Styles */
.section {
    padding: 100px 50px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    color: #00d4ff;
    margin-bottom: 15px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(180deg, #ffffff 0%, #a0a0a0 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #c0c0c0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: #c0c0c0;
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 15px 18px;
    background: #1a1a1a;
    border: 1px solid rgba(192, 192, 192, 0.2);
    border-radius: 8px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #ff3333;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(192, 192, 192, 0.5);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23c0c0c0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-error {
    color: #ff3333;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.hidden {
    display: none !important;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .flash-messages {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}
