/* Custom Bootstrap Enhancement for PureCraft Shader License */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Root Variables */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #fd7e14;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-warning: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    
    --border-radius: 15px;
    --border-radius-lg: 20px;
    --border-radius-xl: 25px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    scroll-behavior: smooth;
}

/* Rounded corners for all elements */
.card, .btn, .badge, .alert, .navbar, .accordion-button, .accordion-item {
    border-radius: var(--border-radius) !important;
}

.card-header, .accordion-header .accordion-button {
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
}

img {
    border-radius: var(--border-radius);
}

.hero-visual .license-preview {
    border-radius: var(--border-radius-lg);
}

.summary-icon, .grant-icon {
    border-radius: 50%;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 400;
}

.hero-description {
    font-size: 1.125rem;
    opacity: 0.95;
    max-width: 500px;
}

.hero-badges .badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
}

.hero-actions .btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
}

.hero-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    z-index: 2;
}

.license-preview {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.preview-dots {
    display: flex;
    gap: 0.5rem;
}

.preview-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.preview-dots span:nth-child(1) { background: #ff5f56; }
.preview-dots span:nth-child(2) { background: #ffbd2e; }
.preview-dots span:nth-child(3) { background: #27ca3f; }

.preview-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.preview-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.preview-line.long { width: 100%; }
.preview-line.medium { width: 75%; }
.preview-line.short { width: 50%; }

.preview-highlight {
    height: 12px;
    background: rgba(103, 126, 234, 0.6);
    border-radius: 6px;
    margin: 1rem 0;
    width: 85%;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-link {
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: var(--border-radius);
    margin: 0 0.25rem;
    position: relative;
}

.nav-link:hover {
    background-color: rgba(13, 110, 253, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    background-color: var(--primary-color);
    color: white !important;
}

/* Section Headers */
.section-header {
    position: relative;
    padding-bottom: 2rem;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Summary Cards */
.summary-card .card {
    transition: all 0.3s ease;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.summary-card .card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
}

.summary-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto;
}

.summary-card.allowed .summary-icon {
    background: var(--gradient-success);
    color: white;
}

.summary-card.conditional .summary-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.summary-card.restricted .summary-icon {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
}

/* Term Cards */
.term-card .card {
    transition: all 0.3s ease;
    border-radius: var(--border-radius-lg);
    border: none;
    overflow: hidden;
    height: 100%;
}

.term-card .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.term-card .card-header {
    border-bottom: none;
    font-weight: 600;
}

/* Grant Cards */
.grant-card .card {
    transition: all 0.3s ease;
    border-radius: var(--border-radius-lg);
    border: none;
    overflow: hidden;
}

.grant-card .card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
}

.grant-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto;
}

.grant-card.allowed .card-header {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.1) 0%, rgba(25, 135, 84, 0.05) 100%);
}

.grant-card.conditional .card-header {
    background: linear-gradient(135deg, rgba(253, 126, 20, 0.1) 0%, rgba(253, 126, 20, 0.05) 100%);
}

.grant-card.complex .card-header {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.1) 0%, rgba(13, 202, 240, 0.05) 100%);
}

/* Restriction Cards */
.restriction-card .card {
    transition: all 0.3s ease;
    border-radius: var(--border-radius-lg);
    border: none;
    overflow: hidden;
}

.restriction-card .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

/* Legal Cards */
.legal-card .card {
    transition: all 0.3s ease;
    border-radius: var(--border-radius-lg);
    border: none;
    overflow: hidden;
}

.legal-card .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

/* Accordion Enhancements */
.accordion-button {
    font-weight: 500;
    border-radius: var(--border-radius) !important;
    border: none;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
}

.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
}

/* Alert Enhancements */
.alert {
    border-radius: var(--border-radius);
    border: none;
    font-weight: 500;
}

/* Badge Enhancements */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* Button Enhancements */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Card Enhancements */
.card {
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: var(--box-shadow);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

/* Animation for card entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .license-preview {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-section,
    .scroll-indicator,
    .btn,
    footer {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
    
    body {
        background: white !important;
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.rounded-lg {
    border-radius: var(--border-radius-lg) !important;
}

.shadow-custom {
    box-shadow: var(--box-shadow-lg) !important;
}

/* Enhanced Focus States */
.btn:focus,
.nav-link:focus,
.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: none;
}