/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ff9d;
    --secondary-color: #ff00ff;
    --background-color: #0a0a0a;
    --text-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --hover-color: rgba(0, 255, 157, 0.1);
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Orbitron', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: overlay;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 255, 157, 0.1) 50%,
        rgba(255, 0, 255, 0.1) 100%
    );
    z-index: -1;
}

/* Header styles */
.header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out;
}

.site-title {
    font-size: 4rem;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(0, 255, 157, 0.5);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(0, 255, 157, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(0, 255, 157, 0.8), 0 0 40px rgba(255, 0, 255, 0.5);
    }
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Search bar styles */
.search-container {
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.2);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Main content container */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Bookmark section styles */
.bookmark-section {
    margin-bottom: 3rem;
    animation: slideUp 0.5s ease-out;
    text-align: center;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.section-title i {
    font-size: 1.2rem;
}

.bookmark-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Bookmark item styles */
.bookmark-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
    justify-content: center;
}

.bookmark-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.1);
}

.bookmark-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.bookmark-item span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* Action buttons styles */
.bookmark-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bookmark-item:hover .bookmark-actions {
    opacity: 1;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.25rem;
    transition: all 0.3s ease;
}

.action-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Add bookmark button styles */
.add-bookmark {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--background-color);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
}

.add-bookmark:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.5);
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 500px;
    animation: slideUp 0.3s ease-out;
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Form styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-color);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.form-buttons button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-buttons button[type="submit"] {
    background: var(--primary-color);
    color: var(--background-color);
}

.form-buttons .cancel-btn {
    background: var(--card-bg);
    color: var(--text-color);
}

.form-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.2);
}

/* Delete confirmation styles */
.delete-confirmation {
    text-align: center;
}

.delete-confirmation p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.confirm-delete-btn {
    background: #ff4444 !important;
    color: white !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styles */
@media (max-width: 1200px) {
    .main-content {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .bookmark-grid {
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .site-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .search-container {
        margin-bottom: 2rem;
    }
    
    .search-input {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
    }
    
    .bookmark-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        max-width: 100%;
    }
    
    .bookmark-item {
        padding: 0.8rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .bookmark-item i {
        font-size: 1.2rem;
    }
    
    .bookmark-item span {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.3rem;
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .form-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-buttons button {
        width: 100%;
    }
    
    .add-bookmark {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.5rem;
    }
    
    .site-title {
        font-size: 2rem;
        letter-spacing: 1px;
        margin-bottom: 1.5rem;
    }
    
    .header {
        margin-bottom: 2rem;
    }
    
    .bookmark-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .bookmark-item {
        padding: 1rem;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }
    
    .bookmark-item i {
        font-size: 1.5rem;
        min-width: 1.5rem;
    }
    
    .bookmark-item span {
        font-size: 1rem;
        text-align: left;
    }
    
    .section-title {
        font-size: 1.2rem;
        flex-direction: row;
        justify-content: center;
    }
    
    .bookmark-actions {
        position: static;
        opacity: 1;
        margin-left: auto;
    }
    
    .action-btn {
        padding: 0.5rem;
        font-size: 1rem;
    }
    
    .modal-content {
        width: 98%;
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.6rem;
        font-size: 1rem;
    }
    
    .footer {
        padding: 1rem 0;
        margin-top: 2rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 320px) {
    .site-title {
        font-size: 1.8rem;
    }
    
    .bookmark-item {
        padding: 0.8rem;
    }
    
    .bookmark-item i {
        font-size: 1.3rem;
    }
    
    .bookmark-item span {
        font-size: 0.9rem;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .site-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .header {
        margin-bottom: 1.5rem;
    }
    
    .bookmark-section {
        margin-bottom: 2rem;
    }
    
    .bookmark-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 0.8rem;
    }
    
    .bookmark-item {
        padding: 0.6rem;
    }
    
    .bookmark-item i {
        font-size: 1.2rem;
    }
    
    .bookmark-item span {
        font-size: 0.8rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .site-title {
        text-shadow: 0 0 30px rgba(0, 255, 157, 0.8), 0 0 50px rgba(255, 0, 255, 0.6);
    }
    
    .bookmark-item:hover {
        box-shadow: 0 0 30px rgba(0, 255, 157, 0.2);
    }
}

/* Print styles */
@media print {
    .add-bookmark,
    .bookmark-actions,
    .modal {
        display: none !important;
    }
    
    .bookmark-item {
        border: 1px solid #000;
        break-inside: avoid;
    }
    
    .site-title {
        color: #000 !important;
        text-shadow: none !important;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Footer styles */
.footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer p {
    margin: 0.5rem 0;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--secondary-color);
} 