/* Custom styling for TIR AI Coach Platform by Impressions of Increase */

/* Main brand colors from Impressions of Increase */
:root {
    --tir-copper: #c7956d;
    --tir-copper-light: #d8b296;
    --tir-copper-dark: #a67c5a;
    --tir-slate: #e9ecef;
    --tir-light-gray: #f8f9fa;
    --tir-dark-gray: #343a40;
    --tir-white: #ffffff;
    --tir-black: #212529;
    --tir-sage: #8ea594;
}

/* Global Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Open Sans', sans-serif;
    color: var(--tir-dark-gray);
    background-color: var(--tir-light-gray);
}

main {
    flex: 1 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
    font-weight: 600;
}

.text-copper {
    color: var(--tir-copper) !important;
}

.bg-copper {
    background-color: var(--tir-copper) !important;
}

.btn-copper {
    background-color: var(--tir-copper);
    border-color: var(--tir-copper);
    color: white;
}

.btn-copper:hover {
    background-color: var(--tir-copper-dark);
    border-color: var(--tir-copper-dark);
    color: white;
}

.btn-outline-copper {
    color: var(--tir-copper);
    border-color: var(--tir-copper);
}

.btn-outline-copper:hover {
    background-color: var(--tir-copper);
    color: white;
}

/* Custom link styling */
a {
    transition: all 0.2s ease;
    color: var(--tir-copper);
}

a:hover {
    color: var(--tir-copper-dark);
    text-decoration: none;
}

/* Card hover effects */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Progress bar styling */
.progress {
    height: 10px;
    background-color: var(--tir-slate);
    border-radius: 5px;
}

.progress-bar {
    transition: width 1s ease;
    background-color: var(--tir-copper);
}

/* Buttons with icons - proper alignment */
.btn i {
    vertical-align: middle;
}

/* TIR Logo and branding elements */
.tir-logo {
    font-family: 'Georgia', serif;
    font-weight: bold;
    letter-spacing: 1px;
}

.tir-branding {
    color: var(--tir-copper);
}

/* Chat styles */
#chat-messages {
    scrollbar-width: thin;
    scrollbar-color: var(--tir-copper) var(--tir-slate);
    background-color: var(--tir-white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

#chat-messages::-webkit-scrollbar {
    width: 8px;
}

#chat-messages::-webkit-scrollbar-track {
    background: var(--tir-slate);
}

#chat-messages::-webkit-scrollbar-thumb {
    background-color: var(--tir-copper);
    border-radius: 20px;
    border: 2px solid var(--tir-slate);
}

.user-message {
    background-color: var(--tir-slate);
    border-radius: 18px 18px 2px 18px;
    padding: 12px 16px;
    margin-bottom: 15px;
    max-width: 80%;
    align-self: flex-end;
}

.ai-message {
    background-color: var(--tir-copper-light);
    color: var(--tir-dark-gray);
    border-radius: 18px 18px 18px 2px;
    padding: 12px 16px;
    margin-bottom: 15px;
    max-width: 80%;
    align-self: flex-start;
}

/* Goal status badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 12px;
}

.badge-copper {
    background-color: var(--tir-copper);
    color: white;
}

/* Custom task checkbox styling */
.task-checkbox {
    cursor: pointer;
    width: 20px;
    height: 20px;
    accent-color: var(--tir-copper);
}

/* Animate goal progress bars */
@keyframes progressAnimation {
    0% {
        width: 0%;
    }
}

.animate-progress {
    animation: progressAnimation 1.5s ease-out;
}

/* Improved form focus states */
.form-control:focus, 
.form-select:focus, 
.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(199, 149, 109, 0.25);
    border-color: var(--tir-copper);
}

/* Motion effects for buttons */
.btn {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    padding: 10px 24px;
    font-weight: 500;
}

.btn:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

/* Quote styling for landing page */
.quote-container {
    background-color: var(--tir-slate);
    border-left: 4px solid var(--tir-copper);
    padding: 20px;
    margin: 20px 0;
    font-style: italic;
    position: relative;
}

.quote-container::before {
    content: '"';
    position: absolute;
    top: -15px;
    left: 10px;
    font-size: 60px;
    color: var(--tir-copper);
    opacity: 0.3;
    font-family: Georgia, serif;
}

/* Dashboard card styles */
.card-header {
    border-bottom: none;
    padding-bottom: 0.5rem;
    background-color: transparent;
}

/* Goals accordion styling */
.accordion-button:not(.collapsed) {
    background-color: var(--tir-copper);
    color: white;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(199, 149, 109, 0.25);
    border-color: var(--tir-copper);
}

/* Chat message transitions */
#chat-messages > div {
    transition: opacity 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    #chat-messages {
        height: 400px !important;
    }
}

/* Hero section with gradient background */
.hero-section {
    background: linear-gradient(rgba(33, 37, 41, 0.7), rgba(33, 37, 41, 0.7)), 
                url('/static/images/tir-bg.png') no-repeat center center;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 80px 0;
    margin-bottom: 40px;
    border-radius: 8px;
}

/* Testimonial card styling */
.testimonial-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    height: 100%;
}

.testimonial-card .card-body {
    padding: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

/* Feature icon styling */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: var(--tir-white);
    background-color: var(--tir-copper);
    border-radius: 50%;
}

/* Custom tooltip styles */
.custom-tooltip {
    position: relative;
    display: inline-block;
}

.custom-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: var(--tir-dark-gray);
    color: white;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1;
    font-size: 0.75rem;
}

/* Custom animation for displaying success feedback */
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(10px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

.feedback-toast {
    animation: fadeInOut 3s ease forwards;
}

/* Coach section styling */
.coach-section {
    background-color: var(--tir-slate);
    border-radius: 8px;
    padding: 40px;
    margin: 40px 0;
}

.coach-image {
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Content management styles */
.content-manager {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.content-type-nav .nav-link {
    color: var(--tir-dark-gray);
    border-radius: 0;
    padding: 10px 15px;
    position: relative;
}

.content-type-nav .nav-link.active {
    color: var(--tir-copper);
    background-color: transparent;
    font-weight: 600;
}

.content-type-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--tir-copper);
}

/* Blog post card styling */
.blog-post-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.blog-post-image {
    height: 200px;
    object-fit: cover;
}

/* Podcast episode styling */
.podcast-episode {
    background-color: var(--tir-slate);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.podcast-episode-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--tir-copper);
    margin-right: 15px;
    min-width: 40px;
    text-align: center;
}

/* Social media post preview */
.social-media-preview {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--tir-slate);
    margin-bottom: 20px;
}

.social-media-header {
    padding: 10px 15px;
    background-color: var(--tir-slate);
    display: flex;
    align-items: center;
}

.social-media-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.social-media-content {
    padding: 15px;
}

.social-media-image {
    width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}

/* New Homepage Styles */
.hero-section-new {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(249,250,251,0.95) 100%);
    padding: 40px 0;
}

.min-vh-75 {
    min-height: 75vh;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.coach-hero-img {
    max-height: 500px;
    object-fit: cover;
}

.feature-icon-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.bg-copper-light {
    background-color: rgba(199, 149, 109, 0.15) !important;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.event-card {
    border-left: 4px solid var(--tir-copper);
}

.quote-container-new {
    background-color: var(--tir-slate);
    border-left: 4px solid var(--tir-copper);
    padding: 20px 25px;
    border-radius: 0 8px 8px 0;
}

.tir-methodology-section {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
}

.podcast-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(199, 149, 109, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.podcast-icon-lg {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card {
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.testimonial-card-new {
    display: flex;
    flex-direction: column;
}

/* Navbar updates */
.navbar-brand.tir-logo {
    font-size: 1.1rem;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.dropdown-item:hover {
    background-color: rgba(199, 149, 109, 0.1);
    color: var(--tir-copper);
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--tir-copper);
    color: white;
}

/* Coming soon badge in nav */
.nav-link .badge {
    font-size: 0.6rem;
    vertical-align: middle;
    padding: 2px 5px;
}

/* Footer dark theme links */
footer a.text-white-50:hover {
    color: var(--tir-copper) !important;
}

/* Page hero sections */
.page-hero {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--tir-slate) 0%, var(--tir-white) 100%);
}

/* Responsive adjustments for new layout */
@media (max-width: 991px) {
    .navbar-brand.tir-logo {
        font-size: 0.9rem;
    }
    
    .hero-section-new {
        padding: 20px 0;
    }
    
    .min-vh-75 {
        min-height: auto;
    }
    
    .coach-hero-img {
        max-height: 350px;
    }
}

@media (max-width: 767px) {
    .feature-icon-lg {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
}
