/* Custom styles for BrandifyAI */

:root {
    --primary-color: #1E40AF;
    --secondary-color: #3B82F6;
    --success-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --info-color: #3B82F6;
    --light-color: #F3F4F6;
    --dark-color: #1F2937;
}

/* Typography */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 700;
}

/* Buttons */
.btn {
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Cards */
.card {
    border: none;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Fix for navbar collapse */
.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
}

.navbar-toggler {
    border: 1px solid rgba(0,0,0,.1);
}

.navbar-toggler:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Hero Section */
.bg-gradient-to-r {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
}

/* Color swatches */
.color-swatch {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: inline-block;
    margin-right: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Loading spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Brand card hover effects */
.brand-card {
    transition: all 0.3s ease;
}

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

/* Footer */
footer {
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

/* Alert custom styles */
.alert {
    border: none;
    border-radius: 8px;
}

/* Accordion custom styles */
.accordion-button:not(.collapsed) {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Copy button */
.copy-btn {
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    opacity: 0.8;
}

/* PDF viewer placeholder */
.pdf-placeholder {
    background-color: var(--light-color);
    border: 2px dashed var(--secondary-color);
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
}

/* Brand history grid */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Utility classes */
.transition {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero logo animation */
.hero-logo-container {
    position: relative;
    display: inline-block;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.floating-badges .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Social links */
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Dropdown menu fixes */
.dropdown-menu {
    min-width: 200px;
    border: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--light-color);
    padding-left: 2rem;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Mobile menu improvements */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    /* Remove the static positioning that might break dropdowns */
    .navbar-collapse .dropdown-menu {
        box-shadow: none;
        background: var(--light-color);
        margin: 0.5rem 0;
    }
}

/* Z-index fixes for dropdowns */
.dropdown-menu.show {
    z-index: 1050;
}

.navbar {
    z-index: 1040;
}