/* Custom CSS for URL Shortener */

:root {
    --primary-color: #6f42c1;
    --secondary-color: #e83e8c;
    --accent-color: #fd7e14;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Header Styles */
.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* URL Shortener Form */
.url-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 10px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(111, 66, 193, 0.3);
}

/* Demo Ad Box */
.demo-ad-box {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    color: white;
    text-align: center;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.demo-ad-box::before {
    content: 'ADVERTISEMENT';
    position: absolute;
    top: 3px;
    right: 8px;
    font-size: 0.6rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 1px 6px;
    border-radius: 8px;
    color: white;
}

.demo-ad-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.demo-ad-text {
    flex: 1;
    min-width: 180px;
}

.demo-ad-text h6 {
    margin-bottom: 5px;
    font-weight: 700;
}

.demo-ad-text p {
    margin-bottom: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.demo-ad-cta {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
}

.demo-ad-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
}

/* Features Section */
.features-section {
    background: white;
    padding: 40px 0;
}

.feature-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

/* Results Section */
.results-section {
    background: var(--light-color);
    padding: 40px 0;
}

.result-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.short-url {
    background: linear-gradient(135deg, var(--success-color), #20c997);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 600;
    word-break: break-all;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.copy-btn {
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.copy-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h4 {
    color: var(--dark-color);
    font-weight: 700;
}

.price {
    margin: 1rem 0;
}

.price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.price .amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
}

.price .period {
    font-size: 1rem;
    color: #6c757d;
}

.pricing-features {
    margin-bottom: 2rem;
}

.pricing-features ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.pricing-features ul li:last-child {
    border-bottom: none;
}

.pricing-footer {
    text-align: center;
}

/* API Documentation Card */
.api-doc-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.api-endpoint {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.method {
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.method.post {
    background: var(--success-color);
    color: white;
}

.method.get {
    background: var(--info-color);
    color: white;
}

.url {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--dark-color);
}

.api-example {
    margin-bottom: 1.5rem;
}

.api-example h6 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.api-example pre {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e9ecef;
    font-size: 0.85rem;
    overflow-x: auto;
}

.api-example code {
    color: var(--dark-color);
    font-family: 'Courier New', monospace;
}

/* QR Code Modal */
.qr-modal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.qr-modal .modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px 15px 0 0;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
    padding: 0.75rem 1rem;
}

.alert-success {
    background: linear-gradient(135deg, var(--success-color), #20c997);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, var(--danger-color), #e74c3c);
    color: white;
}

/* Loading Spinner */
.spinner-border {
    width: 1rem;
    height: 1rem;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: #e9ecef;
    padding: 30px 0 15px;
}

.footer h5 {
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.footer p {
    color: #adb5bd;
    line-height: 1.6;
}

.footer a {
    color: #ced4da;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer .social-links a {
    color: #6c757d;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer .social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.footer hr {
    border-color: #495057;
    margin: 2rem 0 1rem;
}

.footer .text-muted {
    color: #6c757d !important;
}

.footer .text-muted a {
    color: #adb5bd !important;
}

.footer .text-muted a:hover {
    color: var(--accent-color) !important;
}

/* Visitor Counter */
.visitor-counter {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 6px 12px;
    display: inline-block;
    font-weight: 600;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.visitor-counter i {
    color: #ffd700;
    margin-right: 4px;
}

/* Alternative visitor counter style for better visibility */
.visitor-counter-alt {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 20px;
    padding: 8px 15px;
    display: inline-block;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0, 123, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.visitor-counter-alt i {
    color: #ffd700;
    margin-right: 6px;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .url-form {
        padding: 1rem;
        margin: 0 10px;
    }
    
    .demo-ad-content {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.2rem;
    color: white;
}

.card-icon.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.card-icon.success {
    background: linear-gradient(135deg, var(--success-color), #20c997);
}

.card-icon.warning {
    background: linear-gradient(135deg, var(--warning-color), #fd7e14);
}

.card-icon.info {
    background: linear-gradient(135deg, var(--info-color), #17a2b8);
}

.card-icon.danger {
    background: linear-gradient(135deg, var(--danger-color), #e74c3c);
} 