/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rubik', sans-serif;
}

:root {
    --primary-color: #ff3e00;
    --secondary-color: #7000ff;
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --text-color: #ffffff;
    --accent-color: #ffcc00;
    --border-radius: 8px;
    --box-shadow: 0 4px 30px rgba(255, 62, 0, 0.3);
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 62, 0, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(112, 0, 255, 0.1) 0%, transparent 20%);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* TYPOGRAPHY */
h1, h2, h3 {
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(255, 62, 0, 0.3);
}

h1 span {
    color: var(--accent-color);
    -webkit-text-fill-color: var(--accent-color);
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

.tagline {
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* HEADER */
header {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.logo {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    margin-right: 15px;
    box-shadow: var(--box-shadow);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transform: rotate(-5deg);
    border: 3px solid var(--text-color);
}

/* URL CREATOR SECTION */
.url-creator {
    background-color: var(--darker-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    box-shadow: var(--box-shadow);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.url-creator::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient);
    opacity: 0.05;
    transform: rotate(30deg);
    z-index: 0;
    pointer-events: none;
}

.url-input-container {
    position: relative;
    z-index: 1;
}

input[type="text"] {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
}

input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(112, 0, 255, 0.5);
}

.custom-url-container {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border: 3px solid var(--primary-color);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
}

.domain-separator {
    padding: 0 10px;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.domain {
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--accent-color);
    font-weight: 700;
    white-space: nowrap;
}

.custom-url-container input {
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    background-color: transparent;
    flex: 1;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: var(--gradient);
    color: var(--text-color);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 62, 0, 0.4);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 62, 0, 0.6);
    border: 2px solid var(--text-color);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-primary i {
    margin-left: 10px;
}

.result-container {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    border: 2px solid var(--accent-color);
    display: none;
}

/* FEATURES SECTION */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.feature-card {
    background-color: var(--darker-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 50%;
    opacity: 0.3;
    z-index: 0;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
}

.feature-card i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* SMARTLINK SHOWCASE */
.smartlink-showcase {
    margin-bottom: 40px;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.smartlink-button {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--darker-bg);
    border: 3px solid var(--primary-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.smartlink-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: all 0.6s ease;
}

.smartlink-button:hover {
    transform: translateX(5px);
    border-color: var(--secondary-color);
    background-color: rgba(0, 0, 0, 0.5);
}

.smartlink-button:hover::before {
    left: 100%;
}

.smartlink-button i {
    font-size: 1.5rem;
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
}

/* SAVED URLS SECTION */
.saved-urls-section {
    margin-bottom: 40px;
}

.saved-url-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--darker-bg);
    border: 3px solid var(--primary-color);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.saved-url-item:hover {
    transform: translateX(5px);
    border-color: var(--secondary-color);
}

.saved-url-info {
    flex: 1;
}

.saved-url-domain {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.saved-url-domain i {
    font-size: 1.5rem;
    margin-right: 10px;
}

.saved-url-domain span {
    font-weight: 700;
    font-size: 1.1rem;
}

.saved-url-links {
    margin-top: 10px;
}

.saved-url-actions {
    margin-left: 15px;
}

.delete-btn {
    background-color: rgba(255, 0, 0, 0.2);
    color: #ff3e00;
    border: 2px solid #ff3e00;
    border-radius: var(--border-radius);
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background-color: rgba(255, 0, 0, 0.4);
    transform: scale(1.1);
}

.no-saved-urls {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* SUCCESS & ERROR MESSAGES */
.success-message, .error-message {
    padding: 15px;
    border-radius: var(--border-radius);
}

.success-message h3 {
    margin-bottom: 15px;
    text-align: center;
}

.error-message {
    display: flex;
    align-items: center;
    color: #ff3e00;
}

.error-message i {
    font-size: 1.5rem;
    margin-right: 15px;
}

.url-display {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.url-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.url-row:last-child {
    margin-bottom: 0;
}

.url-label {
    font-weight: 700;
    margin-right: 10px;
    min-width: 80px;
}

.url-value {
    word-break: break-all;
}

.short-url-container {
    display: flex;
    align-items: center;
    flex: 1;
}

.short-url {
    flex: 1;
}

.copy-btn {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    border-radius: var(--border-radius);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: scale(1.1);
}

.success-note {
    text-align: center;
    font-weight: 700;
    color: var(--accent-color);
}

.domain-info {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ANIMATIONS */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s;
}

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

.fade-in {
    animation: fadeIn 0.5s;
}

.btn-success {
    background: linear-gradient(135deg, #00c853 0%, #009624 100%);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 2px solid var(--primary-color);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .logo {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .saved-url-item {
        flex-direction: column;
    }
    
    .saved-url-actions {
        margin-left: 0;
        margin-top: 15px;
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .logo {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .custom-url-container {
        flex-direction: column;
    }
    
    .domain {
        width: 100%;
        text-align: center;
    }
    
    .url-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .url-label {
        margin-bottom: 5px;
    }
    
    .short-url-container {
        width: 100%;
        margin-top: 5px;
    }
}
