/* Tech Gaming Theme for SiteNotas */

/* === Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary) rgba(0, 24, 36, 0.3);
}

/* === Custom Scrollbar Styling === */
/* For Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 24, 36, 0.3);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--secondary), var(--secondary-dark));
    border-radius: 6px;
    border: 2px solid rgba(0, 24, 36, 0.5);
    box-shadow: 0 0 5px rgba(0, 196, 255, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--secondary-light), var(--secondary));
    box-shadow: 0 0 8px rgba(0, 196, 255, 0.5);
}

::-webkit-scrollbar-corner {
    background: rgba(0, 24, 36, 0.3);
}

body {
    font-family: var(--font-primary);
    color: var(--text);
    background: linear-gradient(rgba(10, 18, 31, 0.45), rgba(26, 42, 68, 0.92)), 
                url('../image/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    padding: var(--spacing-md);
    line-height: var(--line-height-normal);
    position: relative;
}

/* Tech circuit overlay pattern */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('');
    background-size: 300px;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

/* === Container & Card Styling === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

.card {
    background: var(--dark-alpha-50);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--secondary-alpha-20);
    box-shadow: var(--shadow-lg), var(--secondary-glow);
    overflow: hidden;
    margin-bottom: var(--spacing-2xl);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    animation: fadeIn 0.8s var(--transition-in-out);
    position: relative;
}

/* Tech border decorations */
.card::before, .card::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--secondary);
    pointer-events: none;
}

.card::before {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.card::after {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl), 0 0 30px var(--secondary-alpha-50);
}

.card-header {
    background: var(--gradient-dark);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--secondary-alpha-20);
    position: relative;
    overflow: hidden;
}

/* Digital circuit pattern in header */
.card-header::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 100px;
    background-image: url('../image/background4.jpeg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    top: 5px;
    right: -50px;
    opacity: 0.15;
}

.card-header h1 {
    font-family: var(--font-display);
    color: var(--secondary);
    text-transform: uppercase;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-xs);
    letter-spacing: var(--letter-spacing-wide);
    text-shadow: 0 0 10px var(--secondary-alpha-50);
    position: relative;
}

.card-header p {
    color: var(--text-secondary);
    font-size: var(--font-size-md);
    max-width: 80%;
    opacity: 0.9;
}

/* === Header with Image Styling === */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-text {
    flex: 1;
}

.header-image {
    margin-left: 20px;
}

.header-image img {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 0 8px var(--secondary-alpha-50));
    animation: float 3s var(--transition-in-out) infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* === Form Styling === */
form {
    padding: var(--spacing-xl);
    position: relative;
    backdrop-filter: var(--blur-sm);
}

/* Add subtle tech grid to form */
form::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/grid-pattern.png');
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px var(--spacing-md);
}

.col {
    flex: 1;
    padding: 0 10px;
    min-width: 250px;
}

.form-group {
    margin-bottom: var(--spacing-lg);
    position: relative;
}

label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--secondary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    transition: color var(--transition-normal);
}

input, select {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--secondary-alpha-20);
    background-color: var(--input);
    color: var(--input-text);
    font-family: var(--font-primary);
    font-size: var(--font-size-md);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px var(--secondary-alpha-20);
    transform: translateY(-2px);
}

input:hover, select:hover {
    border-color: var(--secondary-alpha-50);
    box-shadow: var(--shadow-md);
}

input[readonly] {
    background-color: var(--card);
    cursor: not-allowed;
    border-color: var(--secondary-alpha-10);
}

/* Special styling for readonly value fields */
input#valorTotal, input#valorFrete, input#valorFinal {
    font-weight: var(--font-weight-bold);
    color: var(--secondary);
    text-shadow: 0 0 5px var(--secondary-alpha-20);
    background: linear-gradient(to right, var(--input), var(--card));
    letter-spacing: var(--letter-spacing-wide);
}

/* === Button Styling === */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-secondary);
    color: var(--dark);
    border: none;
    border-radius: var(--border-radius-md);
    font-family: var(--font-display);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wider);
    cursor: pointer;
    transition: all var(--transition-bounce);
    box-shadow: var(--shadow-md), var(--glow-secondary);
    margin-top: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--secondary-glow);
}

.submit-btn:active {
    transform: translateY(1px);
    box-shadow: var(--shadow-sm), 0 0 10px var(--secondary-alpha-20);
    transition: all var(--transition-fast);
}

/* Tech pulse effect behind button */
.submit-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    animation: button-shine 3s infinite;
}

@keyframes button-shine {
    0% { left: -50%; }
    100% { left: 150%; }
}

/* === Status Message Styling === */
.status-message {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-md);
    font-weight: var(--font-weight-medium);
    display: none;
    opacity: 0;
    animation: fadeIn 0.3s var(--transition-in-out) forwards;
}

.status-message.info {
    background-color: var(--info-alpha-50);
    color: var(--text);
    border-left: 4px solid var(--info);
    display: block;
}

.status-message.success {
    background-color: var(--success-alpha-50);
    color: var(--text);
    border-left: 4px solid var(--success);
    display: block;
}

.status-message.error {
    background-color: var(--danger-alpha-50);
    color: var(--text);
    border-left: 4px solid var(--danger);
    display: block;
}

/* === Warning Box Styling === */
.warning-box {
    background-color: var(--danger-alpha-50);
    border: none;
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--border-radius-md);
    position: relative;
    box-shadow: var(--shadow-md);
}

/* Tech warning border */
.warning-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid var(--danger);
    border-radius: calc(var(--border-radius-md) - 1px);
    background-image: 
        repeating-linear-gradient(45deg, var(--danger) 0, var(--danger) 2px, transparent 2px, transparent 8px);
    background-size: 12px 12px;
    clip-path: polygon(
        0% 0%, 15px 0%, 15px 1px, calc(100% - 15px) 1px, 
        calc(100% - 15px) 0%, 100% 0%, 100% 100%, 
        calc(100% - 15px) 100%, calc(100% - 15px) calc(100% - 1px),
        15px calc(100% - 1px), 15px 100%, 0% 100%
    );
    pointer-events: none;
    opacity: 0.3;
}

.warning-box h3 {
    font-family: var(--font-display);
    color: var(--danger);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-xl);
    letter-spacing: var(--letter-spacing-wide);
}

.warning-box p {
    color: var(--text);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-md);
}

.warning-box p:last-child {
    margin-bottom: 0;
    font-weight: var(--font-weight-bold);
    color: var(--danger);
}

/* === Resources Box Styling === */
.resources-box {
    background-color: var(--dark-alpha-80);
    border: 1px solid var(--secondary-alpha-20);
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--border-radius-md);
    position: relative;
    box-shadow: var(--shadow-md);
}

.resources-box h3 {
    font-family: var(--font-display);
    color: var(--secondary);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-xl);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
}

.resources-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.resource-link {
    display: flex;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--secondary-alpha-20);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition-elastic);
    flex: 1;
    min-width: 220px;
}

.resource-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-md), var(--secondary-glow);
    border-color: var(--secondary);
    color: var(--secondary);
}

.resource-icon {
    margin-right: var(--spacing-sm);
    transition: transform var(--transition-bounce);
}

.resource-link:hover .resource-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Responsive adjustments for resources section */
@media (max-width: 576px) {
    .resources-links {
        flex-direction: column;
    }
    
    .resource-link {
        width: 100%;
    }
}

/* === Divider & Signature Styling === */
.divider {
    text-align: center;
    color: var(--secondary);
    margin: var(--spacing-lg) 0;
    font-size: var(--font-size-lg);
    letter-spacing: var(--letter-spacing-wide);
    opacity: 0.7;
    position: relative;
}

/* Tech divider decorations */
.divider::before, .divider::after {
    content: '◈';
    color: var(--secondary);
    font-size: 14px;
    margin: 0 10px;
    vertical-align: middle;
}

.signature {
    text-align: center;
    font-family: var(--font-display);
    color: var(--secondary);
    font-size: var(--font-size-lg);
    letter-spacing: var(--letter-spacing-widest);
    padding: 0 var(--spacing-lg) var(--spacing-xl);
    opacity: 0.8;
    text-shadow: var(--secondary-glow);
    position: relative;
}

/* Tech logo beneath signature */
.signature::after {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    background-image: url('../images/tech-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin: 15px auto 0;
    opacity: 0.7;
}

/* === Animations === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .col {
        flex: 100%;
        margin-bottom: var(--spacing-sm);
    }
    
    .card-header h1 {
        font-size: var(--font-size-2xl);
    }
    
    form {
        padding: var(--spacing-md);
    }
    
    .warning-box, .divider, .signature {
        margin: var(--spacing-md);
    }
}

@media (max-width: 576px) {
    body {
        padding: var(--spacing-xs);
    }
    
    .container {
        padding: var(--spacing-xs);
    }
    
    .card-header h1 {
        font-size: var(--font-size-xl);
    }
    
    .card-header p {
        font-size: var(--font-size-sm);
    }

    .header-image img {
        width: 60px;
    }
}

/* === Bootstrap Overrides === */
.form-control, .form-select {
    background-color: var(--input);
    border-color: var(--secondary-alpha-20);
    color: var(--input-text);
    transition: all var(--transition-normal);
}

.form-control:focus, .form-select:focus {
    background-color: var(--input);
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.25rem var(--secondary-alpha-20);
    color: var(--input-text);
    transform: translateY(-1px);
}

.btn-primary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--dark);
    transition: all var(--transition-bounce);
}

.btn-primary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--secondary-glow);
}