/* =============================================================================
   Template-Specific Overrides
   Consolidates inline styles from templates into CSS file
   ============================================================================= */

/* Note: CSS Variables should be loaded before this file */

/* =============================================================================
   Responsive Typography Classes
   ============================================================================= */

.h2-md {
    font-size: 2rem;
}

.h3-md {
    font-size: 1.75rem;
}

.h4-md {
    font-size: 1.5rem;
}

.h5-md {
    font-size: 1.25rem;
}

.h4-responsive {
    font-size: 1.5rem;
}

.small-responsive {
    font-size: 0.875rem;
}

.link-responsive {
    font-size: 0.875rem;
}

/* =============================================================================
   Page Layout Classes (pt-page, section-title-block, etc.)
   ============================================================================= */

.pt-page {
    padding: 20px 15px 50px;
}

.section-title-block {
    margin-bottom: 2rem;
}

.subpage-block {
    margin-bottom: 2rem;
}

.block-title {
    margin-bottom: 1.5rem;
}

.contact-info-block {
    margin-bottom: 1.5rem;
    padding: 1rem 0;
}

/* =============================================================================
   Service & Client Blocks
   ============================================================================= */

.service-block img {
    max-width: 100%;
    height: auto;
}

.client_block img {
    max-width: 100%;
    height: auto;
    max-width: 150px;
}

/* =============================================================================
   Fun Fact Block
   ============================================================================= */

.fun-fact-block {
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
}

.fun-fact-block h4 {
    font-size: 1.125rem;
}

.fun-value {
    font-size: 2rem;
}

/* =============================================================================
   Icon Sizes (stat-icon, finance-icon, action-icon)
   ============================================================================= */

.stat-icon {
    font-size: 48px;
}

.finance-icon {
    font-size: 64px;
}

.action-icon {
    font-size: 18px;
}

/* =============================================================================
   Chart Container
   ============================================================================= */

.chart-container {
    position: relative;
    height: 300px;
    max-height: 100%;
}

#radarChart {
    max-height: 400px;
}

/* =============================================================================
   Help Page Specific Styles
   ============================================================================= */

.help-thumbnail {
    height: 200px;
    object-fit: cover;
}

.help-icon {
    font-size: 48px;
}

.video-modal-content {
    width: 90%;
    max-width: 800px;
}

.video-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* =============================================================================
   Pending Transaction Styles
   ============================================================================= */

.pending-transaction-item {
    display: flex;
    align-items: center;
}

.pending-transaction-actions {
    margin-left: auto;
}

/* =============================================================================
   Login/Register Form Styles
   ============================================================================= */

.login-input {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.75rem 1rem;
}

.login-icon {
    padding: 0.75rem 1rem;
    flex-shrink: 0;
}

.login-icon .material-icons {
    font-size: 1.25rem;
}

.btn-lg-responsive {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

/* =============================================================================
   Form Control Focus Enhancement - Removed: Already defined in forms.css
   ============================================================================= */

/* =============================================================================
   Smooth Scrolling - Removed: Already defined in base/reset.css
   ============================================================================= */

/* =============================================================================
   Responsive Media Queries
   Standardized breakpoints: 575.98px, 767.98px, 991.98px, 992px
   ============================================================================= */

/* Mobile (max-width: 575.98px) - Extra Small */
@media (max-width: 575.98px) {
    /* Typography - Removed: Already defined in typography.css with CSS variables */
    
    /* Icon sizes */
    .stat-icon {
        font-size: 36px;
    }
    
    /* Chart */
    #radarChart {
        max-height: 300px;
    }
    
    /* Help page */
    .help-thumbnail {
        height: 150px;
    }
    
    .help-icon {
        font-size: 36px;
    }
    
    .video-modal-content {
        width: 95%;
    }
    
    .video-modal-close {
        top: 5px;
        right: 5px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    /* Card padding - Removed: Already defined in cards.css with CSS variables */
    
    /* Form controls - Removed: Already defined in forms.css with CSS variables */
    
    /* Buttons - Removed: Already defined in buttons.css with CSS variables */
    
    /* Avatar */
    .avatar-lg {
        width: 60px;
        height: 60px;
    }
    
    /* Alert */
    .alert {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}

/* Mobile (max-width: 767.98px) - Small */
@media (max-width: 767.98px) {
    /* Typography - Removed: Already defined in typography.css with CSS variables */
    
    /* Page layout */
    .pt-page {
        padding: 15px 10px 40px;
    }
    
    .section-title-block {
        margin-bottom: 1.5rem;
        padding: 0;
    }
    
    .subpage-block {
        margin-bottom: 1.5rem;
    }
    
    .block-title {
        margin-bottom: 1rem;
    }
    
    .contact-info-block {
        margin-bottom: 1rem;
        padding: 0.75rem 0;
    }
    
    /* Container padding */
    .container-fluid.page__container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Card styles - Removed: Already defined in cards.css with CSS variables */
    
    /* Buttons - Removed: Already defined in buttons.css with CSS variables */
    
    /* Form controls - Removed: Already defined in forms.css with CSS variables */
    
    /* List group */
    .list-group-item {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Button group - Removed: Already defined in buttons.css with CSS variables */
    
    /* Material icons */
    .material-icons {
        font-size: 1.2em;
    }
    
    /* Icon sizes */
    .finance-icon {
        font-size: 48px;
    }
    
    /* Chart container */
    .chart-container {
        height: 250px;
    }
    
    /* Info card */
    .card.border-left-primary .avatar-title {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .card.border-left-primary .media-left {
        margin-right: 0.75rem;
    }
    
    /* Badge */
    .badge {
        font-size: 0.75rem;
        padding: 0.35em 0.65em;
    }
    
    /* reCAPTCHA */
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
        margin-bottom: 1rem;
    }
    
    /* Pending transactions */
    .pending-transaction-item {
        flex-direction: column;
    }
    
    .pending-transaction-actions {
        margin-top: 15px;
        margin-left: 0;
        width: 100%;
    }
    
    .pending-transaction-actions .form-group {
        margin-bottom: 10px;
    }
    
    /* Touch-friendly links */
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
    }
}

/* Tablet (min-width: 576px and max-width: 767.98px) - Removed: Already defined in typography.css */

/* Tablet (min-width: 768px and max-width: 991.98px) - Removed: Already defined in typography.css */

/* Desktop (min-width: 768px) - for specific fixes */
@media (min-width: 768px) {
    /* Bootstrap 4 responsive columns fix - Removed: Already defined in main.css */
    
    /* Input group - Removed: Already defined in forms.css with CSS variables */
}

/* Desktop (min-width: 992px) - Large */
@media (min-width: 992px) {
    /* h-100 - Removed: Already defined in components/cards.css */
}

/* =============================================================================
   Animation Keyframes (for help page)
   ============================================================================= */

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

